feat: support admin_peers (#4435)

This commit is contained in:
Matthias Seitz
2023-08-31 13:36:50 -07:00
committed by GitHub
parent d8a7ee2eb4
commit a76da98316
11 changed files with 177 additions and 90 deletions

View File

@ -113,6 +113,11 @@ impl<S> MeteredStream<S> {
pub fn get_bandwidth_meter(&self) -> &BandwidthMeter {
&self.meter
}
/// Returns the wrapped stream
pub fn inner(&self) -> &S {
&self.inner
}
}
impl<Stream: AsyncRead> AsyncRead for MeteredStream<Stream> {