Skip to content

Commit

Permalink
sdk: add support to gossip model
Browse files Browse the repository at this point in the history
  • Loading branch information
yukibtc committed Oct 11, 2023
1 parent fc4d4ea commit 213cffa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crates/nostr-sdk/src/client/options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ pub struct Options {
/// NIP46 timeout (default: 180 secs)
#[cfg(feature = "nip46")]
pub nip46_timeout: Option<Duration>,
/// Gossip model (default: true)
pub gossip_model: bool,
/// Shutdown on [Client](super::Client) drop
pub shutdown_on_drop: bool,
/// Pool Options
Expand All @@ -56,6 +58,7 @@ impl Default for Options {
send_timeout: Some(DEFAULT_SEND_TIMEOUT),
#[cfg(feature = "nip46")]
nip46_timeout: Some(Duration::from_secs(180)),
gossip_model: true,
shutdown_on_drop: false,
pool: RelayPoolOptions::default(),
}
Expand Down

0 comments on commit 213cffa

Please sign in to comment.