From 5ce0e4b724482c90046c667937baffb85404869a Mon Sep 17 00:00:00 2001 From: Yuki Kishimoto Date: Mon, 11 Sep 2023 12:25:46 +0200 Subject: [PATCH] sdk: set `DEFAULT_SEND_TIMEOUT` to 20 secs --- crates/nostr-sdk/src/client/options.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/nostr-sdk/src/client/options.rs b/crates/nostr-sdk/src/client/options.rs index ebf606a9c..c8e9aeac0 100644 --- a/crates/nostr-sdk/src/client/options.rs +++ b/crates/nostr-sdk/src/client/options.rs @@ -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)] @@ -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, /// NIP46 timeout (default: 180 secs) #[cfg(feature = "nip46")]