From 4320f812ac03306fc19d8f71983d7926a87c1bb2 Mon Sep 17 00:00:00 2001 From: Marten Seemann Date: Sun, 19 Dec 2021 19:39:59 +0400 Subject: [PATCH] remove the DialTimeout The timeout should be a configuration option for the swarm, not a global variable. --- transport/transport.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/transport/transport.go b/transport/transport.go index d3c69f9..0879bc2 100644 --- a/transport/transport.go +++ b/transport/transport.go @@ -14,11 +14,6 @@ import ( ma "github.com/multiformats/go-multiaddr" ) -// DialTimeout is the maximum duration a Dial is allowed to take. -// This includes the time between dialing the raw network connection, -// protocol selection as well the handshake, if applicable. -var DialTimeout = 15 * time.Second - // AcceptTimeout is the maximum duration an Accept is allowed to take. // This includes the time between accepting the raw network connection, // protocol selection as well as the handshake, if applicable.