From 71f89dc7ec7cf993d1eca98771212afe6310e9c8 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sun, 10 Oct 2021 19:42:48 +0300 Subject: refactor --- cmd/dtail/main.go | 1 + 1 file changed, 1 insertion(+) (limited to 'cmd') diff --git a/cmd/dtail/main.go b/cmd/dtail/main.go index 4285476..bc4236c 100644 --- a/cmd/dtail/main.go +++ b/cmd/dtail/main.go @@ -85,6 +85,7 @@ func main() { ctx, cancel := context.WithCancel(context.Background()) if shutdownAfter > 0 { + // TODO: This does not work (auto shutdown) ctx, cancel = context.WithTimeout(ctx, time.Duration(shutdownAfter)*time.Second) defer cancel() } -- cgit v1.2.3