Initialize nginx process error channel
goroutines that write to ngxErrCh remain asleep forever without that necessary initialization.
This commit is contained in:
parent
3166b985d9
commit
d1feb65ff9
1 changed files with 2 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue