Update default peer TCP connect timeout to 10s

This commit is contained in:
Igor Katson 2021-10-08 23:54:26 +01:00
parent f2c509359f
commit 18b99c91a1

View file

@ -133,7 +133,7 @@ impl<H: PeerConnectionHandler> PeerConnection<H> {
let mut conn = match timeout(
self.options
.connect_timeout
.unwrap_or_else(|| Duration::from_secs(2)),
.unwrap_or_else(|| Duration::from_secs(10)),
tokio::net::TcpStream::connect(self.addr),
)
.await