Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

Commit

Permalink
Sleep cancel sleep on log follow if the user cancels
Browse files Browse the repository at this point in the history
  • Loading branch information
rumpl committed Jul 3, 2020
1 parent ae76e0c commit 0057093
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion azure/aci.go
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,11 @@ func streamLogs(ctx context.Context, aciContext store.AciContext, containerGroup
fmt.Fprintln(out, logLines[i])
}

time.Sleep(2 * time.Second)
select {
case <-ctx.Done():
return nil
case <-time.After(2 * time.Second):
}
}
}
}
Expand Down

0 comments on commit 0057093

Please sign in to comment.