Skip to content

Commit

Permalink
Merge pull request #795 from dennis-tra/increase-provider-maddr-ttl
Browse files Browse the repository at this point in the history
Increase provider Multiaddress TTL
  • Loading branch information
guillaumemichel authored Mar 15, 2023
2 parents a83e0b2 + 362b64d commit 9449bf2
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions providers/providers_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,16 @@ import (
"github.com/multiformats/go-base32"
)

// ProvidersKeyPrefix is the prefix/namespace for ALL provider record
// keys stored in the data store.
const ProvidersKeyPrefix = "/providers/"
const (
// ProvidersKeyPrefix is the prefix/namespace for ALL provider record
// keys stored in the data store.
ProvidersKeyPrefix = "/providers/"

// ProviderAddrTTL is the TTL to keep the multi addresses of provider
// peers around. This means we return those addresses alongside provider
// records and likely make the second DHT lookup for addresses obsolete.
ProviderAddrTTL = 24 * time.Hour
)

// 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 9449bf2

Please sign in to comment.