Skip to content

Commit

Permalink
fix reading channels
Browse files Browse the repository at this point in the history
  • Loading branch information
fabriciojs committed Aug 21, 2024
1 parent 86c1b22 commit 84f66a9
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions commands/cloud_deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,21 +100,21 @@ func (d *KoolDeploy) Execute(args []string) (err error) {

var chPingDone = make(chan bool)
go func() {
select {
case <-chPingDone:
if isVerbose {
fmt.Println(" - ending deploy ping routine")
}
return
case <-time.After(30 * time.Second):
if isVerbose {
fmt.Println(" - going to ping API while local build runs")
}
if _, err = deployer.PingDeploy(deployCreated); err != nil {
d.Shell().Error(err)
for {
select {
case <-chPingDone:
if isVerbose {
fmt.Println(" - ending deploy ping routine")
}
return
case <-time.After(30 * time.Second):
if isVerbose {
fmt.Println(" - going to ping API while local build runs")
}
if _, err = deployer.PingDeploy(deployCreated); err != nil {
d.Shell().Error(err)
}
}
break
}
}()

Expand Down

0 comments on commit 84f66a9

Please sign in to comment.