aboutsummaryrefslogtreecommitdiff
path: root/pkg/worker/http.go
diff options
context:
space:
mode:
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
}
}