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,11 +4,8 @@ package sockets
44import (
55 "errors"
66 "net/http"
7- "time"
87)
98
10- const defaultTimeout = 10 * time .Second
11-
129// ErrProtocolNotAvailable is returned when a given transport protocol is not provided by the operating system.
1310var ErrProtocolNotAvailable = errors .New ("protocol not available" )
1411
Original file line number Diff line number Diff line change @@ -11,7 +11,10 @@ import (
1111 "time"
1212)
1313
14- const maxUnixSocketPathSize = len (syscall.RawSockaddrUnix {}.Path )
14+ const (
15+ defaultTimeout = 10 * time .Second
16+ maxUnixSocketPathSize = len (syscall.RawSockaddrUnix {}.Path )
17+ )
1518
1619func configureUnixTransport (tr * http.Transport , proto , addr string ) error {
1720 if len (addr ) > maxUnixSocketPathSize {
You can’t perform that action at this time.
0 commit comments