src/bin/download-speed.rs: h2 download speedtest for our server
I get about 30MB/s (much too slow)
This commit is contained in:
@ -500,6 +500,13 @@ impl BackupReader {
|
||||
self.h2.download(path, Some(param), output)
|
||||
}
|
||||
|
||||
pub fn speedtest<W: Write>(
|
||||
&self,
|
||||
output: W,
|
||||
) -> impl Future<Item=W, Error=Error> {
|
||||
self.h2.download("speedtest", None, output)
|
||||
}
|
||||
|
||||
pub fn download_chunk<W: Write>(
|
||||
&self,
|
||||
digest: &[u8; 32],
|
||||
|
Reference in New Issue
Block a user