Skip to content

Commit

Permalink
chore: removed unused provider addr ttl constant
Browse files Browse the repository at this point in the history
  • Loading branch information
dennis-tra committed Oct 21, 2022
1 parent e29d2cf commit 0e1b7df
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions core/peerstore/peerstore.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,6 @@ var (
// TempAddrTTL is the ttl used for a short lived address.
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,
// the records we return will require an extra lookup.
ProviderAddrTTL = time.Minute * 30

// RecentlyConnectedAddrTTL is used when we recently connected to a peer.
// It means that we are reasonably certain of the peer's address.
RecentlyConnectedAddrTTL = time.Minute * 30
Expand Down

0 comments on commit 0e1b7df

Please sign in to comment.