Fix comment above goroutine code
This commit is contained in:
parent
a78650e526
commit
19bacf29b2
@ -25,7 +25,8 @@ func main() {
|
|||||||
syscall.SIGTERM,
|
syscall.SIGTERM,
|
||||||
)
|
)
|
||||||
|
|
||||||
// This goroutine ensures that itc
|
// This goroutine ensures that itctl will exit
|
||||||
|
// at most 200ms after the user sends SIGINT/SIGTERM.
|
||||||
go func() {
|
go func() {
|
||||||
<-ctx.Done()
|
<-ctx.Done()
|
||||||
time.Sleep(200*time.Millisecond)
|
time.Sleep(200*time.Millisecond)
|
||||||
|
Loading…
Reference in New Issue
Block a user