summaryrefslogtreecommitdiff
path: root/cmd/dcat
diff options
context:
space:
mode:
authorPaul Buetow <pbuetow@mimecast.com>2024-02-23 15:01:41 +0200
committerPaul Buetow <pbuetow@mimecast.com>2024-03-29 17:16:39 +0200
commit0f718c963e118139c893e9c52092e278bcd3b396 (patch)
treedce61c6695bc3badd455a64767252e6947b32711 /cmd/dcat
parent7a0b0cde9c7c46d5f70ebc4a9d4f4e718d835f70 (diff)
lint warnings
Diffstat (limited to 'cmd/dcat')
-rw-r--r--cmd/dcat/main.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/cmd/dcat/main.go b/cmd/dcat/main.go
index 98da089..a50be51 100644
--- a/cmd/dcat/main.go
+++ b/cmd/dcat/main.go
@@ -59,8 +59,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.NewCatClient(args)