Add a BandwidthLogging transport wrapper (#911)

* Add a BandwidthLogging transport wrapper

* Update src/bandwidth.rs

Co-Authored-By: tomaka <pierre.krieger1708@gmail.com>

* Limit by bytes.len

* Write test for bandwidth report

* Use the vector length instead of rolling_seconds
This commit is contained in:
Pierre Krieger
2019-02-14 16:39:18 +01:00
committed by GitHub
parent 1100325e63
commit e6c5240567
4 changed files with 318 additions and 2 deletions

View File

@ -179,6 +179,7 @@ pub use libp2p_yamux as yamux;
mod transport_ext;
pub mod bandwidth;
pub mod simple;
pub use self::core::{