aboutsummaryrefslogtreecommitdiffstats
path: root/lib/backend/storage
diff options
context:
space:
mode:
authorEstevan Castilho <tevo@riajuu.net>2026-08-22 17:55:26 +0000
committerEstevan Castilho <tevo@riajuu.net>2026-08-23 03:06:58 +0000
commitdb968eccee931abc8ad00d74d152625a2ab3174e (patch)
tree3d5018dd9e298cfc1fb14bf404cde3fce5953fca /lib/backend/storage
parentb242516fc820a0a1ab00e24151a5b978f9a6f4a3 (diff)
downloadRNT-db968eccee931abc8ad00d74d152625a2ab3174e.tar.gz
RNT-db968eccee931abc8ad00d74d152625a2ab3174e.zip
Tidy up
Diffstat (limited to 'lib/backend/storage')
-rw-r--r--lib/backend/storage/LMDB.ml6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/backend/storage/LMDB.ml b/lib/backend/storage/LMDB.ml
index dc7f510..0f65aaf 100644
--- a/lib/backend/storage/LMDB.ml
+++ b/lib/backend/storage/LMDB.ml
@@ -178,14 +178,14 @@ let bytes_of_address = function
let get ({tx; dbi} : transaction) (addr : address) =
begin match C.mdb_get' tx dbi (bytes_of_address addr) with
- | Ok x -> Ok (Some (Concepts.Representation.blob_of_bytes x))
+ | Ok x -> Ok (Some (Concepts.Blob.blob_of_bytes x))
| Error e when e = C.Errors.mdb_notfound -> Ok None
| Error e -> Error e
end
|> Result.map_error Error.lmdb_error
-let put ({tx; dbi} : transaction) (addr : address) (b : Concepts.Representation.blob) =
+let put ({tx; dbi} : transaction) (addr : address) (b : Concepts.Blob.t) =
C.mdb_put' tx dbi (bytes_of_address addr)
- (Concepts.Representation.bytes_of_blob b)
+ (Concepts.Blob.bytes_of_blob b)
Unsigned.UInt.zero
|> Result.map_error Error.lmdb_error