Skip to content

Commit 34b23f0

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

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
@@ -322,7 +322,7 @@ pub fn RocksDB(comptime column_families: []const ColumnFamily) type {
322322
pub fn nextValue(self: *@This()) anyerror!?cf.Value {
323323
const entry = try callRocks(self.logger, rocks.Iterator.next, .{&self.inner});
324324
return if (entry) |kv|
325-
try key_serializer.deserialize(cf.Value, self.allocator, kv[1].data)
325+
try value_serializer.deserialize(cf.Value, self.allocator, kv[1].data)
326326
else
327327
null;
328328
}

0 commit comments

Comments
 (0)