diff options
| author | Gabriel A. Giovanini <mail@gabrielgio.me> | 2024-06-23 17:47:50 +0200 | 
|---|---|---|
| committer | Gabriel A. Giovanini <mail@gabrielgio.me> | 2024-06-23 17:51:05 +0200 | 
| commit | 9e210f61a6259c37cc7938cf353527cf072b3eda (patch) | |
| tree | 5f2855377262b2e915ebf801502c835d6bcec75b /pkg/worker | |
| parent | ba84c0d82066739adbca468846a2688e02432b6f (diff) | |
| download | cerrado-9e210f61a6259c37cc7938cf353527cf072b3eda.tar.gz cerrado-9e210f61a6259c37cc7938cf353527cf072b3eda.tar.bz2 cerrado-9e210f61a6259c37cc7938cf353527cf072b3eda.zip | |
ref: User correct err naming
Diffstat (limited to 'pkg/worker')
| -rw-r--r-- | pkg/worker/http.go | 4 | 
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  	}  } | 
