From: Matt Joiner Date: Thu, 11 Nov 2021 23:37:21 +0000 (+1100) Subject: cmd/torrentfs: Add missing envpprof.Stop X-Git-Tag: v1.37.0~12 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=801fa59d5a151bdd812936abe307917f3588993a;p=btrtrc.git cmd/torrentfs: Add missing envpprof.Stop --- 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)