diff --git a/cmd/helix-proxy/api_errors_test.go b/cmd/helix-proxy/api_errors_test.go index 477abb6..ad72cc9 100644 --- a/cmd/helix-proxy/api_errors_test.go +++ b/cmd/helix-proxy/api_errors_test.go @@ -118,11 +118,11 @@ func TestAPI_ErrorPaths(t *testing.T) { assertStatus(t, apiPost(t, env.BaseURL+"/api/redirection-hosts/bad/enable", nil, token), http.StatusBadRequest) first := apiPost(t, env.BaseURL+"/api/redirection-hosts", map[string]any{ - "domainNames": []string{"dup-redir.example"}, - "forwardDomainName": "target.example", - "forwardScheme": "https", - "preservePath": true, - "enabled": true, + "domainNames": []string{"dup-redir.example"}, + "forwardDomainName": "target.example", + "forwardScheme": "https", + "preservePath": true, + "enabled": true, }, token) if first.StatusCode != http.StatusCreated { t.Fatalf("redir create: %d %s", first.StatusCode, readBody(first)) diff --git a/cmd/helix-proxy/test_server_test.go b/cmd/helix-proxy/test_server_test.go index cd25e77..c14f9b4 100644 --- a/cmd/helix-proxy/test_server_test.go +++ b/cmd/helix-proxy/test_server_test.go @@ -19,7 +19,7 @@ import ( type testServerMode int const ( - testServerAPI testServerMode = iota + testServerAPI testServerMode = iota testServerAdmin ) diff --git a/internal/proxy/engine.go b/internal/proxy/engine.go index d0e184d..d2fb9d2 100644 --- a/internal/proxy/engine.go +++ b/internal/proxy/engine.go @@ -95,8 +95,8 @@ func NewEngine(st store.Store) *Engine { return &Engine{ hosts: make(map[string]*Host), st: st, - streamHandles: make(map[int]*streamHandle), - streamRuntime: make(map[int]*streamRuntime), + streamHandles: make(map[int]*streamHandle), + streamRuntime: make(map[int]*streamRuntime), hostCerts: make(map[string]*tls.Certificate), certByID: make(map[int]*tls.Certificate), redirHosts: make(map[string]store.RedirectionHost), diff --git a/internal/store/source_validate.go b/internal/store/source_validate.go index 8d9b3db..6f3e9d8 100644 --- a/internal/store/source_validate.go +++ b/internal/store/source_validate.go @@ -9,10 +9,10 @@ import ( ) var ( - ErrDuplicateProxySource = errors.New("duplicate proxy host source domain") - ErrDuplicateRedirectionSource = errors.New("duplicate redirection host source domain") - ErrDuplicateDeadSource = errors.New("duplicate dead host source domain") - ErrDuplicateStreamPort = errors.New("duplicate stream incoming port") + ErrDuplicateProxySource = errors.New("duplicate proxy host source domain") + ErrDuplicateRedirectionSource = errors.New("duplicate redirection host source domain") + ErrDuplicateDeadSource = errors.New("duplicate dead host source domain") + ErrDuplicateStreamPort = errors.New("duplicate stream incoming port") ) func IsConflictError(err error) bool {