From 76a2f7d2db001fbd2bb48e362a58014669c0b85e Mon Sep 17 00:00:00 2001 From: ston1th Date: Thu, 19 May 2022 01:33:48 +0200 Subject: [PATCH] remove pprof --- cmd/cachefs/main.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/cmd/cachefs/main.go b/cmd/cachefs/main.go index ad97c90..81fc171 100644 --- a/cmd/cachefs/main.go +++ b/cmd/cachefs/main.go @@ -6,7 +6,8 @@ import ( "context" "flag" "net/http" - _ "net/http/pprof" + + //_ "net/http/pprof" "os" "os/signal" "syscall" @@ -52,9 +53,9 @@ func main() { flag.Int64Var("a, "quota", 1, "max disk usage quota for the dst cache in GiB") flag.BoolVar(&block, "block", true, "block until sftp is connected") flag.Parse() - go func() { - http.ListenAndServe("127.0.0.1:7777", nil) - }() + //go func() { + // http.ListenAndServe("127.0.0.1:7777", nil) + //}() log = klogr.New().WithName("main") log.Info("starting cachefs", "version", version)