multi: use timeout field in dialer

This commit is contained in:
yyforyongyu
2020-08-25 12:50:48 +08:00
parent fb67b58d3f
commit ef38b12fda
7 changed files with 35 additions and 29 deletions

View File

@@ -226,7 +226,9 @@ func initAutoPilot(svr *server, cfg *lncfg.AutoPilot,
"address type %T", addr)
}
err := svr.ConnectToPeer(lnAddr, false)
err := svr.ConnectToPeer(
lnAddr, false, svr.cfg.ConnectionTimeout,
)
if err != nil {
// If we weren't able to connect to the
// peer at this address, then we'll move