Skip to content

Commit

Permalink
fix(ledger): hashmapdb compile error when used as blockstore database
Browse files Browse the repository at this point in the history
  • Loading branch information
dnut committed Nov 1, 2024
1 parent 740675f commit 83352f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ledger/database/hashmap.zig
Original file line number Diff line number Diff line change
Expand Up @@ -360,12 +360,12 @@ pub fn SharedHashMapDB(comptime column_families: []const ColumnFamily) type {

pub fn nextKey(self: *@This()) anyerror!?cf.Key {
const index = self.nextIndex() orelse return null;
return key_serializer.deserialize(cf.Key, self.allocator, self.keys[index]);
return try key_serializer.deserialize(cf.Key, self.allocator, self.keys[index]);
}

pub fn nextValue(self: *@This()) anyerror!?cf.Value {
const index = self.nextIndex() orelse return null;
return value_serializer.deserialize(cf.Value, self.allocator, self.vals[index]);
return try value_serializer.deserialize(cf.Value, self.allocator, self.vals[index]);
}

pub fn nextBytes(self: *@This()) error{}!?[2]BytesRef {
Expand Down

0 comments on commit 83352f2

Please sign in to comment.