mirror of
https://github.com/bcicen/ctop.git
synced 2025-12-06 15:16:41 +08:00
remove unneeded select for simple channel receive
This commit is contained in:
@@ -62,10 +62,8 @@ func (l *DockerLogs) Stream() chan models.Log {
|
||||
}()
|
||||
|
||||
go func() {
|
||||
select {
|
||||
case <-l.done:
|
||||
<-l.done
|
||||
cancel()
|
||||
}
|
||||
}()
|
||||
|
||||
log.Infof("log reader started for container: %s", l.id)
|
||||
|
||||
Reference in New Issue
Block a user