From fab5dc3e70434ea0abc7a0976487a1973b662331 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Wed, 6 Oct 2021 09:50:41 +0300 Subject: enable faster shutdown - useful for dgrep/dmap and dcat commands --- cmd/dtail/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd') diff --git a/cmd/dtail/main.go b/cmd/dtail/main.go index 820323c..d333825 100644 --- a/cmd/dtail/main.go +++ b/cmd/dtail/main.go @@ -97,8 +97,8 @@ func main() { dlog.Start(ctx, &wg, sourceProcess, config.Common.LogLevel) if checkHealth { + defer cancel() healthClient, _ := clients.NewHealthClient(args) - cancel() os.Exit(healthClient.Start(ctx, signal.InterruptCh(ctx))) } -- cgit v1.2.3