mirror of
https://github.com/bcicen/ctop.git
synced 2024-08-30 18:23:19 +00:00
remove unneeded select for simple channel receive
This commit is contained in:
parent
7118e45f3a
commit
6bee1b7f31
@ -62,10 +62,8 @@ func (l *DockerLogs) Stream() chan models.Log {
|
|||||||
}()
|
}()
|
||||||
|
|
||||||
go func() {
|
go func() {
|
||||||
select {
|
<-l.done
|
||||||
case <-l.done:
|
|
||||||
cancel()
|
cancel()
|
||||||
}
|
|
||||||
}()
|
}()
|
||||||
|
|
||||||
log.Infof("log reader started for container: %s", l.id)
|
log.Infof("log reader started for container: %s", l.id)
|
||||||
|
Loading…
Reference in New Issue
Block a user