lib/relays: Fix incorrect timeout, bring back logging (ref #6289) (#6291)

* lib/relays: Fix incorrect timeout, bring back logging (ref #6289)

* Fix format strings
This commit is contained in:
Audrius Butkevicius
2020-01-23 21:37:35 +00:00
committed by GitHub
parent b9879e2013
commit 17b441c993
2 changed files with 9 additions and 3 deletions
+1 -1
View File
@@ -152,7 +152,7 @@ func (c *staticClient) connect(ctx context.Context) error {
}
t0 := time.Now()
timeoutCtx, cancel := context.WithTimeout(ctx, time.Second)
timeoutCtx, cancel := context.WithTimeout(ctx, c.connectTimeout)
defer cancel()
tcpConn, err := dialer.DialContext(timeoutCtx, "tcp", c.uri.Host)
if err != nil {