diff --git a/.golangci.yml b/.golangci.yml index 7f824b1..ee17b15 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -29,14 +29,14 @@ linters-settings: goimports: local-prefixes: github.com/networkservicemesh gocyclo: - min-complexity: 15 + min-complexity: 20 maligned: suggest-new: true dupl: threshold: 150 funlen: - Lines: 180 - Statements: 80 + Lines: 225 + Statements: 100 goconst: min-len: 2 min-occurrences: 2 diff --git a/internal/imports/imports_linux.go b/internal/imports/imports_linux.go index dd79b6e..d88ea7b 100644 --- a/internal/imports/imports_linux.go +++ b/internal/imports/imports_linux.go @@ -3,6 +3,7 @@ package imports import ( _ "context" + _ "fmt" _ "github.com/antonfisher/nested-logrus-formatter" _ "github.com/edwarnicke/debug" _ "github.com/edwarnicke/grpcfd" @@ -20,6 +21,7 @@ import ( _ "github.com/networkservicemesh/sdk/pkg/networkservice/common/retry" _ "github.com/networkservicemesh/sdk/pkg/networkservice/utils/metadata" _ "github.com/networkservicemesh/sdk/pkg/tools/awarenessgroups" + _ "github.com/networkservicemesh/sdk/pkg/tools/grpcutils" _ "github.com/networkservicemesh/sdk/pkg/tools/log" _ "github.com/networkservicemesh/sdk/pkg/tools/log/logruslogger" _ "github.com/networkservicemesh/sdk/pkg/tools/nsurl" diff --git a/main.go b/main.go index fc2419b..c6d0614 100644 --- a/main.go +++ b/main.go @@ -286,8 +286,6 @@ func main() { } } - log.FromContext(ctx).Infof("MY_INFO Conn: %v", request.Connection) - resp, err := nsmClient.Request(ctx, request) if err != nil { log.FromContext(ctx).Fatalf("request has failed: %v", err.Error())