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() {
|
||||
select {
|
||||
case <-l.done:
|
||||
cancel()
|
||||
}
|
||||
<-l.done
|
||||
cancel()
|
||||
}()
|
||||
|
||||
log.Infof("log reader started for container: %s", l.id)
|
||||
|
Loading…
Reference in New Issue
Block a user