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
4
4
import (
5
5
"errors"
6
6
"net/http"
7
+ "time"
7
8
)
8
9
10
+ const defaultTimeout = 10 * time .Second
11
+
9
12
// ErrProtocolNotAvailable is returned when a given transport protocol is not provided by the operating system.
10
13
var ErrProtocolNotAvailable = errors .New ("protocol not available" )
11
14
Original file line number Diff line number Diff line change @@ -11,10 +11,7 @@ import (
11
11
"time"
12
12
)
13
13
14
- const (
15
- defaultTimeout = 10 * time .Second
16
- maxUnixSocketPathSize = len (syscall.RawSockaddrUnix {}.Path )
17
- )
14
+ const maxUnixSocketPathSize = len (syscall.RawSockaddrUnix {}.Path )
18
15
19
16
func configureUnixTransport (tr * http.Transport , proto , addr string ) error {
20
17
if len (addr ) > maxUnixSocketPathSize {
You can’t perform that action at this time.
0 commit comments