From 6aea0515c43547f3de98c0ebf34ba0f58836847c Mon Sep 17 00:00:00 2001 From: kirillston Date: Tue, 15 Aug 2023 14:51:10 +0200 Subject: [PATCH] GO-1825 Fix gci one more timr --- cmd/grpcserver/grpc.go | 5 +++-- core/debug.go | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/cmd/grpcserver/grpc.go b/cmd/grpcserver/grpc.go index bf75ab3b9..51b49d00d 100644 --- a/cmd/grpcserver/grpc.go +++ b/cmd/grpcserver/grpc.go @@ -8,8 +8,6 @@ import ( "fmt" "net" "net/http" - //nolint: gosec - _ "net/http/pprof" "os" "os/signal" "strconv" @@ -34,6 +32,9 @@ import ( "github.com/anyproto/anytype-heart/pb/service" "github.com/anyproto/anytype-heart/pkg/lib/logging" "github.com/anyproto/anytype-heart/util/debug" + + //nolint: gosec + _ "net/http/pprof" ) const defaultAddr = "127.0.0.1:31007" diff --git a/core/debug.go b/core/debug.go index 821c04d22..7672d2668 100644 --- a/core/debug.go +++ b/core/debug.go @@ -2,7 +2,7 @@ package core import ( "context" - + "github.com/anyproto/anytype-heart/core/block" "github.com/anyproto/anytype-heart/core/debug" "github.com/anyproto/anytype-heart/core/subscription"