mirror of
https://github.com/libp2p/go-libp2p-peerstore.git
synced 2025-03-22 12:50:07 +08:00
Merge pull request #67 from libp2p/fix/keep-temp-addresses
keep temp addresses for 2 minutes
This commit is contained in:
commit
deb2163a68
@ -19,7 +19,7 @@ var (
|
||||
AddressTTL = time.Hour
|
||||
|
||||
// TempAddrTTL is the ttl used for a short lived address
|
||||
TempAddrTTL = time.Second * 10
|
||||
TempAddrTTL = time.Minute * 2
|
||||
|
||||
// ProviderAddrTTL is the TTL of an address we've received from a provider.
|
||||
// This is also a temporary address, but lasts longer. After this expires,
|
||||
|
Loading…
Reference in New Issue
Block a user