Skip to main content

MeshStoreConfig

Type Alias MeshStoreConfig 

Source
pub type MeshStoreConfig = WebRTCStoreConfig;
Expand description

Backward-compatible alias for the generic mesh store configuration.

Aliased Type§

pub struct MeshStoreConfig {
    pub relays: Vec<String>,
    pub roots: Vec<[u8; 32]>,
    pub request_timeout_ms: u64,
    pub hello_interval_ms: u64,
    pub debug: bool,
    pub pools: PoolSettings,
    pub classifier_tx: Option<Sender<ClassifyRequest>>,
    pub request_selection_strategy: SelectionStrategy,
    pub request_fairness_enabled: bool,
    pub request_dispatch: RequestDispatchConfig,
}

Fields§

§relays: Vec<String>

Nostr relays for signaling

§roots: Vec<[u8; 32]>

Root hashes to advertise

§request_timeout_ms: u64

Timeout for data requests (ms)

§hello_interval_ms: u64

Interval for sending hello messages (ms)

§debug: bool

Enable verbose logging

§pools: PoolSettings

Pool settings for follows and other peers

§classifier_tx: Option<Sender<ClassifyRequest>>

Channel for peer classification (optional) If None, all peers go to “Other” pool

§request_selection_strategy: SelectionStrategy

Retrieval peer selection strategy (shared with GenericStore/CLI/sim).

§request_fairness_enabled: bool

Whether fairness constraints are enabled for retrieval selection.

§request_dispatch: RequestDispatchConfig

Hedged request dispatch policy for retrieval.