Skip to content

Commit

Permalink
remove unneeded select for simple channel receive
Browse files Browse the repository at this point in the history
  • Loading branch information
barthr committed Oct 25, 2018
1 parent 7118e45 commit 6bee1b7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions connector/collector/docker_logs.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6bee1b7

Please sign in to comment.