remove unneeded select for simple channel receive

This commit is contained in:
bartfokker 2018-10-25 22:11:17 +02:00
parent 7118e45f3a
commit 6bee1b7f31

View File

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