File tree Expand file tree Collapse file tree 3 files changed +11
-9
lines changed
Expand file tree Collapse file tree 3 files changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -16,23 +16,22 @@ mod websocket;
1616
1717use bandwidth_logging:: * ;
1818use bandwidth_metrics:: * ;
19+ pub use behaviour:: BehaviourError ;
1920use behaviour:: * ;
2021use build:: * ;
2122use dns:: * ;
2223use libp2p_core:: { muxing:: StreamMuxerBox , Transport } ;
2324use libp2p_identity:: Keypair ;
25+ pub use other_transport:: TransportError ;
2426use other_transport:: * ;
2527use provider:: * ;
2628use quic:: * ;
2729use relay:: * ;
2830use swarm:: * ;
2931use tcp:: * ;
30- use websocket:: * ;
31-
32- pub use behaviour:: BehaviourError ;
33- pub use other_transport:: TransportError ;
3432#[ cfg( all( not( target_arch = "wasm32" ) , feature = "websocket" ) ) ]
3533pub use websocket:: WebsocketError ;
34+ use websocket:: * ;
3635
3736use super :: {
3837 select_muxer:: SelectMuxerUpgrade , select_security:: SelectSecurityUpgrade , SwarmBuilder ,
Original file line number Diff line number Diff line change @@ -1497,14 +1497,17 @@ impl Config {
14971497 ///
14981498 /// Defaults to 10s.
14991499 ///
1500- /// Typically, you shouldn't _need_ to modify this default as connections will be kept alive whilst they are "in use" (see below).
1501- /// Depending on the application's usecase, it may be desirable to keep connections alive despite them not being in use.
1500+ /// Typically, you shouldn't _need_ to modify this default as connections will be kept alive
1501+ /// whilst they are "in use" (see below). Depending on the application's usecase, it may be
1502+ /// desirable to keep connections alive despite them not being in use.
15021503 ///
15031504 /// A connection is considered idle if:
15041505 /// - There are no active inbound streams.
15051506 /// - There are no active outbounds streams.
1506- /// - There are no pending outbound streams (i.e. all streams requested via [`ConnectionHandlerEvent::OutboundSubstreamRequest`] have completed).
1507- /// - Every [`ConnectionHandler`] returns `false` from [`ConnectionHandler::connection_keep_alive`].
1507+ /// - There are no pending outbound streams (i.e. all streams requested via
1508+ /// [`ConnectionHandlerEvent::OutboundSubstreamRequest`] have completed).
1509+ /// - Every [`ConnectionHandler`] returns `false` from
1510+ /// [`ConnectionHandler::connection_keep_alive`].
15081511 ///
15091512 /// Once all these conditions are true, the idle connection timeout starts ticking.
15101513 pub fn with_idle_connection_timeout ( mut self , timeout : Duration ) -> Self {
Original file line number Diff line number Diff line change @@ -160,7 +160,7 @@ use async_trait::async_trait;
160160use futures:: { future:: BoxFuture , prelude:: * } ;
161161pub use hickory_resolver:: {
162162 config:: { ResolverConfig , ResolverOpts } ,
163- { ResolveError , ResolveErrorKind } ,
163+ ResolveError , ResolveErrorKind ,
164164} ;
165165use hickory_resolver:: {
166166 lookup:: { Ipv4Lookup , Ipv6Lookup , TxtLookup } ,
You can’t perform that action at this time.
0 commit comments