Compare commits

..

No commits in common. "6447339f64291df742e3e73798e0cb9f687f4be0" and "2c606dbeb44884e7f1305fcbde67c719a9407626" have entirely different histories.

View file

@ -537,17 +537,10 @@ module Make
| Some f -> | Some f ->
read_chunked t `SHA256 path read_chunked t `SHA256 path
(fun (sha256, md5, sha512) data -> (fun (sha256, md5, sha512) data ->
let sha256 = SHA256.feed_string sha256 data in Lwt.return
Lwt.pause () >>= fun () -> (SHA256.feed_string sha256 data,
let md5 = Option.map (fun t -> MD5.feed_string t data) md5,
Option.map (fun t -> MD5.feed_string t data) md5 Option.map (fun t -> SHA512.feed_string t data) sha512))
in
Lwt.pause () >>= fun () ->
let sha512 =
Option.map (fun t -> SHA512.feed_string t data) sha512
in
Lwt.pause () >|= fun () ->
sha256, md5, sha512)
(SHA256.empty, (SHA256.empty,
Option.map (fun _ -> MD5.empty) md5_final, Option.map (fun _ -> MD5.empty) md5_final,
Option.map (fun _ -> SHA512.empty) sha512_final) >>= function Option.map (fun _ -> SHA512.empty) sha512_final) >>= function