reduce the default stream protocol negotiation timeout (#1254)
This commit is contained in:
parent
94ec54e231
commit
0f76f17417
|
@ -50,7 +50,7 @@ var log = logging.Logger("basichost")
|
|||
|
||||
var (
|
||||
// DefaultNegotiationTimeout is the default value for HostOpts.NegotiationTimeout.
|
||||
DefaultNegotiationTimeout = time.Second * 60
|
||||
DefaultNegotiationTimeout = 10 * time.Second
|
||||
|
||||
// DefaultAddrsFactory is the default value for HostOpts.AddrsFactory.
|
||||
DefaultAddrsFactory = func(addrs []ma.Multiaddr) []ma.Multiaddr { return addrs }
|
||||
|
|
Loading…
Reference in New Issue