File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -4,8 +4,11 @@ package sockets
44import (
55 "errors"
66 "net/http"
7+ "time"
78)
89
10+ const defaultTimeout = 10 * time .Second
11+
912// ErrProtocolNotAvailable is returned when a given transport protocol is not provided by the operating system.
1013var ErrProtocolNotAvailable = errors .New ("protocol not available" )
1114
Original file line number Diff line number Diff line change @@ -11,10 +11,7 @@ import (
1111 "time"
1212)
1313
14- const (
15- defaultTimeout = 10 * time .Second
16- maxUnixSocketPathSize = len (syscall.RawSockaddrUnix {}.Path )
17- )
14+ const maxUnixSocketPathSize = len (syscall.RawSockaddrUnix {}.Path )
1815
1916func configureUnixTransport (tr * http.Transport , proto , addr string ) error {
2017 if len (addr ) > maxUnixSocketPathSize {
You can’t perform that action at this time.
0 commit comments