From a3e10757a52fa47a0608afd88986162ca5eb22cc Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Fri, 23 Feb 2024 15:01:41 +0200 Subject: lint warnings --- cmd/dmap/main.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'cmd/dmap/main.go') diff --git a/cmd/dmap/main.go b/cmd/dmap/main.go index e024b37..a8a52a2 100644 --- a/cmd/dmap/main.go +++ b/cmd/dmap/main.go @@ -64,8 +64,10 @@ func main() { dlog.Start(ctx, &wg, source.Client) if pprof != "" { - go http.ListenAndServe(pprof, nil) - dlog.Client.Info("Started PProf", pprof) + dlog.Client.Info("Starting PProf", pprof) + go func() { + panic(http.ListenAndServe(pprof, nil)) + }() } client, err := clients.NewMaprClient(args, clients.DefaultMode) -- cgit v1.2.3