No need to close the log messages channel
Closing the channel sometimes resulted in writes to a closed channel. Instead, the channel will be cleared up by GC as the socket is removed from the sync.Map anyway.
This commit is contained in:
parent
faf54b053a
commit
220d04b696
1 changed files with 0 additions and 1 deletions
|
@ -49,7 +49,6 @@ func (h *stream) Fire(entry *logrus.Entry) error {
|
|||
|
||||
select {
|
||||
case <-ws.quit:
|
||||
close(ws.msgs)
|
||||
break
|
||||
case ws.msgs <- h.Format(entry):
|
||||
break
|
||||
|
|
Loading…
Reference in a new issue