Merge pull request #67 from libp2p/fix/keep-temp-addresses

keep temp addresses for 2 minutes
This commit is contained in:
Steven Allen 2019-04-12 10:32:51 -07:00 committed by GitHub
commit deb2163a68
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,