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