From 19bacf29b29e38354bc6e1992e50ce24b6b7101a Mon Sep 17 00:00:00 2001 From: Arsen Musayelyan Date: Sun, 31 Jul 2022 02:40:46 -0700 Subject: [PATCH] Fix comment above goroutine code --- cmd/itctl/main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/itctl/main.go b/cmd/itctl/main.go index a12ddfb..b548126 100644 --- a/cmd/itctl/main.go +++ b/cmd/itctl/main.go @@ -25,7 +25,8 @@ func main() { 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() { <-ctx.Done() time.Sleep(200*time.Millisecond)