Skip to content

Commit

Permalink
docs(sn_client): connection timeout now hyperlinked
Browse files Browse the repository at this point in the history
  • Loading branch information
mazzi committed Jul 15, 2024
1 parent 0db2ac4 commit edb11fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sn_client/src/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ use tracing::trace;
use xor_name::XorName;

/// The maximum duration the client will wait for a connection to the network before timing out.
const CONNECTION_TIMEOUT: Duration = Duration::from_secs(30);
pub const CONNECTION_TIMEOUT: Duration = Duration::from_secs(30);

/// The timeout duration for the client to receive any response from the network.
const INACTIVITY_TIMEOUT: Duration = Duration::from_secs(30);
Expand All @@ -67,7 +67,7 @@ impl Client {
///
/// Optionally specify the duration for the connection timeout.
///
/// Defaults to `CONNECTION_TIMEOUT`.
/// Defaults to [`CONNECTION_TIMEOUT`].
///
/// # Arguments
/// * 'signer' - [SecretKey]
Expand Down

0 comments on commit edb11fb

Please sign in to comment.