Disable RequestResponse::throttled. (#1711)

Can be enabled again after #1706 is resolved.

Co-authored-by: Roman Borschel <romanb@users.noreply.github.com>
This commit is contained in:
Toralf Wittner
2020-08-18 14:29:38 +02:00
committed by GitHub
parent e1df920703
commit b4ad2d6297
3 changed files with 207 additions and 205 deletions

View File

@ -70,11 +70,13 @@
pub mod codec;
pub mod handler;
pub mod throttled;
// Disabled until #1706 is fixed:
// pub mod throttled;
// pub use throttled::Throttled;
pub use codec::{RequestResponseCodec, ProtocolName};
pub use handler::ProtocolSupport;
pub use throttled::Throttled;
use futures::{
channel::oneshot,
@ -311,10 +313,11 @@ where
}
}
/// Wrap this behaviour in [`Throttled`] to limit the number of concurrent requests per peer.
pub fn throttled(self) -> Throttled<TCodec> {
Throttled::new(self)
}
// Disabled until #1706 is fixed.
// /// Wrap this behaviour in [`Throttled`] to limit the number of concurrent requests per peer.
// pub fn throttled(self) -> Throttled<TCodec> {
// Throttled::new(self)
// }
/// Initiates sending a request.
///