Merge pull request 'digest: return the raw digest, not hex encoded' (#35) from no-digest-hex into main

Reviewed-on: #35
This commit is contained in:
dinosaure 2024-05-08 14:16:43 +00:00
commit 5652b5960d

View file

@ -453,7 +453,7 @@ module Make (Pclock : Mirage_clock.PCLOCK) = struct
let digest t key =
Option.fold
~none:(Error (`Not_found key))
~some:(fun x -> Ok (Store.Hash.to_hex x))
~some:(fun x -> Ok (Store.Hash.to_raw_string x))
t.head |> Lwt.return
let size t key =