diff --git a/.golangci.yml b/.golangci.yml index 1f43091b..ce902ad9 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -85,7 +85,7 @@ linters: - whitespace - gofumpt - godot - - gofmt + # - gofmt - gocritic - gocognit - deadcode diff --git a/pkg/config/server_test.go b/pkg/config/server_test.go index bdf20cb4..8f19c38e 100644 --- a/pkg/config/server_test.go +++ b/pkg/config/server_test.go @@ -126,10 +126,10 @@ func Test_LoadServerCommonConf(t *testing.T) { HeartbeatTimeout: 99, UserConnTimeout: 9, AllowPorts: map[int]struct{}{ - 10: struct{}{}, - 11: struct{}{}, - 12: struct{}{}, - 99: struct{}{}, + 10: {}, + 11: {}, + 12: {}, + 99: {}, }, MaxPoolCount: 59, MaxPortsPerClient: 9,