Skip to content

Commit f6aa7c4

Browse files
committed
use const for timeout
1 parent 747c87c commit f6aa7c4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

libvirt/uri/ssh.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import (
88
"os"
99
"os/user"
1010
"strings"
11-
"time"
1211

1312
"golang.org/x/crypto/ssh"
1413
"golang.org/x/crypto/ssh/agent"
@@ -120,7 +119,7 @@ func (u *ConnectionURI) dialSSH() (net.Conn, error) {
120119
User: username,
121120
HostKeyCallback: hostKeyCallback,
122121
Auth: authMethods,
123-
Timeout: 2 * time.Second,
122+
Timeout: dialTimeout,
124123
}
125124

126125
port := u.Port()

0 commit comments

Comments
 (0)