aboutsummaryrefslogtreecommitdiff
path: root/pkg/worker/http.go
diff options
context:
space:
mode:
authorGabriel A. Giovanini <mail@gabrielgio.me>2024-06-23 17:47:50 +0200
committerGabriel A. Giovanini <mail@gabrielgio.me>2024-06-23 17:51:05 +0200
commit9e210f61a6259c37cc7938cf353527cf072b3eda (patch)
tree5f2855377262b2e915ebf801502c835d6bcec75b /pkg/worker/http.go
parentba84c0d82066739adbca468846a2688e02432b6f (diff)
downloadcerrado-9e210f61a6259c37cc7938cf353527cf072b3eda.tar.gz
cerrado-9e210f61a6259c37cc7938cf353527cf072b3eda.tar.bz2
cerrado-9e210f61a6259c37cc7938cf353527cf072b3eda.zip
ref: User correct err naming
Diffstat (limited to 'pkg/worker/http.go')
-rw-r--r--pkg/worker/http.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/worker/http.go b/pkg/worker/http.go
index 1559ba2..55defd7 100644
--- a/pkg/worker/http.go
+++ b/pkg/worker/http.go
@@ -10,7 +10,7 @@ import (
)
var (
- UnsupportedSchemeErr = errors.New("Ivalid schema, only tcp and unix supported")
+ ErrUnsupportedScheme = errors.New("Ivalid schema, only tcp and unix supported")
)
type ServerTask struct {
@@ -72,6 +72,6 @@ func getListen(addr string) (net.Listener, error) {
}
return net.Listen(u.Scheme, host)
default:
- return nil, UnsupportedSchemeErr
+ return nil, ErrUnsupportedScheme
}
}