Initialize nginx process error channel

goroutines that write to ngxErrCh remain asleep forever without that
necessary initialization.
This commit is contained in:
Antoine Cotten 2019-08-22 16:25:47 +02:00
parent 2edad1b772
commit 1c6a7e1cb8

View file

@ -101,6 +101,8 @@ func NewNGINXController(config *Configuration, mc metric.Collector, fs file.File
stopCh: make(chan struct{}),
updateCh: channels.NewRingChannel(1024),
ngxErrCh: make(chan error),
stopLock: &sync.Mutex{},
fileSystem: fs,