mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
Discussion draft: change DB Writer to take value references (#13672)
This commit is contained in:
@ -125,7 +125,7 @@ where
|
||||
cursor.delete_current()?;
|
||||
// Upsert will replace the last shard for this sharded key with
|
||||
// the previous value.
|
||||
cursor.upsert(RawKey::new(key), prev_value)?;
|
||||
cursor.upsert(RawKey::new(key), &prev_value)?;
|
||||
Ok(PruneShardOutcome::Updated)
|
||||
}
|
||||
// If there's no previous shard for this sharded key,
|
||||
@ -151,7 +151,7 @@ where
|
||||
} else {
|
||||
cursor.upsert(
|
||||
RawKey::new(key),
|
||||
RawValue::new(BlockNumberList::new_pre_sorted(higher_blocks)),
|
||||
&RawValue::new(BlockNumberList::new_pre_sorted(higher_blocks)),
|
||||
)?;
|
||||
Ok(PruneShardOutcome::Updated)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user