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:
Tobie Morgan Hitchcock 2018-05-09 16:34:53 +01:00
parent faf54b053a
commit 220d04b696

View file

@ -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