Skip to content

Commit

Permalink
Merge pull request #67 from libp2p/fix/keep-temp-addresses
Browse files Browse the repository at this point in the history
keep temp addresses for 2 minutes
  • Loading branch information
Stebalien authored Apr 12, 2019
2 parents 25d32c5 + 018d54f commit 50176ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion p2p/host/peerstore/interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 50176ec

Please sign in to comment.