From 801fa59d5a151bdd812936abe307917f3588993a Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Fri, 12 Nov 2021 10:37:21 +1100 Subject: [PATCH] cmd/torrentfs: Add missing envpprof.Stop --- cmd/torrentfs/main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/torrentfs/main.go b/cmd/torrentfs/main.go index b5e87e83..84e35bd8 100644 --- a/cmd/torrentfs/main.go +++ b/cmd/torrentfs/main.go @@ -15,6 +15,7 @@ import ( "bazil.org/fuse" fusefs "bazil.org/fuse/fs" + "github.com/anacrolix/envpprof" _ "github.com/anacrolix/envpprof" "github.com/anacrolix/log" "github.com/anacrolix/tagflag" @@ -67,6 +68,7 @@ func addTestPeer(client *torrent.Client) { } func main() { + defer envpprof.Stop() err := mainErr() if err != nil { log.Printf("error in main: %v", err) -- 2.44.0