mirror of
https://github.com/deuxfleurs-org/garage.git
synced 2026-08-21 02:16:37 +00:00
api: start refactor of signature to calculate checksums earlier
This commit is contained in:
+3
-1
@@ -79,7 +79,9 @@ pub async fn handle_put(
|
||||
// Determine whether object should be encrypted, and if so the key
|
||||
let encryption = EncryptionParams::new_from_headers(&ctx.garage, req.headers())?;
|
||||
|
||||
let stream = body_stream(req.into_body());
|
||||
let (stream, checksums) = req.into_body().streaming_with_checksums(true);
|
||||
let stream = stream.map_err(Error::from);
|
||||
// TODO checksums
|
||||
|
||||
let res = save_stream(
|
||||
&ctx,
|
||||
|
||||
Reference in New Issue
Block a user