Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix format with nightly #5742

Merged
merged 1 commit into from
Dec 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions libp2p/src/builder/phase.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,22 @@ mod websocket;

use bandwidth_logging::*;
use bandwidth_metrics::*;
pub use behaviour::BehaviourError;
use behaviour::*;
use build::*;
use dns::*;
use libp2p_core::{muxing::StreamMuxerBox, Transport};
use libp2p_identity::Keypair;
pub use other_transport::TransportError;
use other_transport::*;
use provider::*;
use quic::*;
use relay::*;
use swarm::*;
use tcp::*;
use websocket::*;

pub use behaviour::BehaviourError;
pub use other_transport::TransportError;
#[cfg(all(not(target_arch = "wasm32"), feature = "websocket"))]
pub use websocket::WebsocketError;
use websocket::*;

use super::{
select_muxer::SelectMuxerUpgrade, select_security::SelectSecurityUpgrade, SwarmBuilder,
Expand Down
11 changes: 7 additions & 4 deletions swarm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1497,14 +1497,17 @@ impl Config {
///
/// Defaults to 10s.
///
/// Typically, you shouldn't _need_ to modify this default as connections will be kept alive whilst they are "in use" (see below).
/// Depending on the application's usecase, it may be desirable to keep connections alive despite them not being in use.
/// Typically, you shouldn't _need_ to modify this default as connections will be kept alive
/// whilst they are "in use" (see below). Depending on the application's usecase, it may be
/// desirable to keep connections alive despite them not being in use.
///
/// A connection is considered idle if:
/// - There are no active inbound streams.
/// - There are no active outbounds streams.
/// - There are no pending outbound streams (i.e. all streams requested via [`ConnectionHandlerEvent::OutboundSubstreamRequest`] have completed).
/// - Every [`ConnectionHandler`] returns `false` from [`ConnectionHandler::connection_keep_alive`].
/// - There are no pending outbound streams (i.e. all streams requested via
/// [`ConnectionHandlerEvent::OutboundSubstreamRequest`] have completed).
/// - Every [`ConnectionHandler`] returns `false` from
/// [`ConnectionHandler::connection_keep_alive`].
///
/// Once all these conditions are true, the idle connection timeout starts ticking.
pub fn with_idle_connection_timeout(mut self, timeout: Duration) -> Self {
Expand Down
2 changes: 1 addition & 1 deletion transports/dns/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ use async_trait::async_trait;
use futures::{future::BoxFuture, prelude::*};
pub use hickory_resolver::{
config::{ResolverConfig, ResolverOpts},
{ResolveError, ResolveErrorKind},
ResolveError, ResolveErrorKind,
};
use hickory_resolver::{
lookup::{Ipv4Lookup, Ipv6Lookup, TxtLookup},
Expand Down
Loading