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;
16
16
17
17
use bandwidth_logging:: * ;
18
18
use bandwidth_metrics:: * ;
19
+ pub use behaviour:: BehaviourError ;
19
20
use behaviour:: * ;
20
21
use build:: * ;
21
22
use dns:: * ;
22
23
use libp2p_core:: { muxing:: StreamMuxerBox , Transport } ;
23
24
use libp2p_identity:: Keypair ;
25
+ pub use other_transport:: TransportError ;
24
26
use other_transport:: * ;
25
27
use provider:: * ;
26
28
use quic:: * ;
27
29
use relay:: * ;
28
30
use swarm:: * ;
29
31
use tcp:: * ;
30
- use websocket:: * ;
31
-
32
- pub use behaviour:: BehaviourError ;
33
- pub use other_transport:: TransportError ;
34
32
#[ cfg( all( not( target_arch = "wasm32" ) , feature = "websocket" ) ) ]
35
33
pub use websocket:: WebsocketError ;
34
+ use websocket:: * ;
36
35
37
36
use super :: {
38
37
select_muxer:: SelectMuxerUpgrade , select_security:: SelectSecurityUpgrade , SwarmBuilder ,
Original file line number Diff line number Diff line change @@ -1497,14 +1497,17 @@ impl Config {
1497
1497
///
1498
1498
/// Defaults to 10s.
1499
1499
///
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.
1502
1503
///
1503
1504
/// A connection is considered idle if:
1504
1505
/// - There are no active inbound streams.
1505
1506
/// - 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`].
1508
1511
///
1509
1512
/// Once all these conditions are true, the idle connection timeout starts ticking.
1510
1513
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;
160
160
use futures:: { future:: BoxFuture , prelude:: * } ;
161
161
pub use hickory_resolver:: {
162
162
config:: { ResolverConfig , ResolverOpts } ,
163
- { ResolveError , ResolveErrorKind } ,
163
+ ResolveError , ResolveErrorKind ,
164
164
} ;
165
165
use hickory_resolver:: {
166
166
lookup:: { Ipv4Lookup , Ipv6Lookup , TxtLookup } ,
You can’t perform that action at this time.
0 commit comments