src/client/http_client.rs: use start of chunk as offset
This commit is contained in:
1 parent
8de20e5c1f
commit
3dc5b2a203
2 files changed
+5
-3
No files matched your search
@@ -445,8 +445,9 @@ impl BackupClient {
|
||||
let stream = stream.
|
||||
map(move |data| {
|
||||
let digest = openssl::sha::sha256(&data);
|
||||
let offset = stream_len;
|
||||
stream_len += data.len() as u64;
|
||||
ChunkInfo { data, digest, offset: stream_len }
|
||||
ChunkInfo { data, digest, offset }
|
||||
});
|
||||
|
||||
let h2 = self.h2.clone();
|
||||
|
||||
Reference in new issue
Block a user