Skip to content

Commit b470156

Browse files
committed
fix(rocksdb): use value_serializer for nextValue deserialization
Iterator.nextValue was incorrectly using key_serializer to deserialize values
1 parent 7ca50bc commit b470156

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ledger/database/rocksdb.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ pub fn RocksDB(comptime column_families: []const ColumnFamily) type {
327327
pub fn nextValue(self: *@This()) anyerror!?cf.Value {
328328
const entry = try callRocks(self.logger, rocks.Iterator.next, .{&self.inner});
329329
return if (entry) |kv|
330-
try key_serializer.deserialize(cf.Value, self.allocator, kv[1].data)
330+
try value_serializer.deserialize(cf.Value, self.allocator, kv[1].data)
331331
else
332332
null;
333333
}

0 commit comments

Comments
 (0)