Skip to content

Commit

Permalink
Initialize nginx process error channel
Browse files Browse the repository at this point in the history
goroutines that write to ngxErrCh remain asleep forever without that
necessary initialization.
  • Loading branch information
antoineco committed Aug 22, 2019
1 parent 3166b98 commit d1feb65
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/ingress/controller/nginx.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit d1feb65

Please sign in to comment.