mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-25 20:37:53 +08:00
This changes the default routing to use both DHT and IPNI at the same time. Closes #9454 Closes #9422 Full context: https://github.com/ipfs/kubo/issues/9454 https://github.com/ipfs/kubo/issues/9422 Co-authored-by: Steve Loeppky <biglep@protocol.ai> Co-authored-by: Gus Eggert <gus@gus.dev> Co-authored-by: Steve Loeppky <biglep@protocol.ai>
12 lines
378 B
Go
12 lines
378 B
Go
package config
|
|
|
|
import "time"
|
|
|
|
const DefaultReproviderInterval = time.Hour * 22 // https://github.com/ipfs/kubo/pull/9326
|
|
const DefaultReproviderStrategy = "all"
|
|
|
|
type Reprovider struct {
|
|
Interval *OptionalDuration `json:",omitempty"` // Time period to reprovide locally stored objects to the network
|
|
Strategy *OptionalString `json:",omitempty"` // Which keys to announce
|
|
}
|