Skip to content

Commit

Permalink
sdk: set DEFAULT_SEND_TIMEOUT to 20 secs
Browse files Browse the repository at this point in the history
  • Loading branch information
yukibtc committed Sep 11, 2023
1 parent 01adb3f commit 5ce0e4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/nostr-sdk/src/client/options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use std::time::Duration;

use crate::relay::RelayPoolOptions;

pub(crate) const DEFAULT_SEND_TIMEOUT: Duration = Duration::from_secs(10);
pub(crate) const DEFAULT_SEND_TIMEOUT: Duration = Duration::from_secs(20);

/// Options
#[derive(Debug, Clone)]
Expand All @@ -32,7 +32,7 @@ pub struct Options {
///
/// Used in `get_events_of`, `req_events_of` and similar as default timeout.
pub timeout: Duration,
/// Send timeout (default: 10 secs)
/// Send timeout (default: 20 secs)
pub send_timeout: Option<Duration>,
/// NIP46 timeout (default: 180 secs)
#[cfg(feature = "nip46")]
Expand Down

0 comments on commit 5ce0e4b

Please sign in to comment.