Skip to content

Commit

Permalink
remove in select
Browse files Browse the repository at this point in the history
  • Loading branch information
hantmac committed Dec 17, 2019
1 parent 99457cf commit c6aa54a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions backend/services/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,8 @@ func GetRemoteLog(task model.Task) (logStr string, err error) {
select {
case logStr = <-ch:
log.Infof("get remote log")
break
case <-time.After(30 * time.Second):
logStr = "get remote log timeout"
break
}

return logStr, nil
Expand Down

0 comments on commit c6aa54a

Please sign in to comment.