mirror of
https://github.com/ipfs/kubo.git
synced 2026-03-10 18:57:57 +08:00
Some checks are pending
CodeQL / codeql (push) Waiting to run
Docker Build / docker-build (push) Waiting to run
Gateway Conformance / gateway-conformance (push) Waiting to run
Gateway Conformance / gateway-conformance-libp2p-experiment (push) Waiting to run
Go Build / go-build (push) Waiting to run
Go Check / go-check (push) Waiting to run
Go Lint / go-lint (push) Waiting to run
Go Test / go-test (push) Waiting to run
Interop / interop-prep (push) Waiting to run
Interop / helia-interop (push) Blocked by required conditions
Interop / ipfs-webui (push) Blocked by required conditions
Sharness / sharness-test (push) Waiting to run
Spell Check / spellcheck (push) Waiting to run
* adjust ipfs stats provide * update boxo dep * bump boxo * fixing tests * docs/chore: mark stat reprovide as experimental * docs: Provider.Strategy explicitly document it is not used - without this legacy users will have it in their config and be very confused --------- Co-authored-by: Marcin Rataj <lidel@lidel.org>
16 lines
601 B
Go
16 lines
601 B
Go
package config
|
|
|
|
import "time"
|
|
|
|
const (
|
|
DefaultReproviderInterval = time.Hour * 22 // https://github.com/ipfs/kubo/pull/9326
|
|
DefaultReproviderStrategy = "all"
|
|
)
|
|
|
|
// Reprovider configuration describes how CID from local datastore are periodically re-announced to routing systems.
|
|
// For provide behavior of ad-hoc or newly created CIDs and their first-time announcement, see Provider.*
|
|
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
|
|
}
|