mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: remove ownership requirement for static file methods (#9709)
This commit is contained in:
@ -50,7 +50,7 @@ impl<DB: Database> Segment<DB> for Headers {
|
||||
debug_assert_eq!(header_td_block, canonical_header_block);
|
||||
|
||||
let _static_file_block =
|
||||
static_file_writer.append_header(header, header_td.0, canonical_header)?;
|
||||
static_file_writer.append_header(&header, header_td.0, &canonical_header)?;
|
||||
debug_assert_eq!(_static_file_block, header_block);
|
||||
}
|
||||
|
||||
|
||||
@ -47,7 +47,7 @@ impl<DB: Database> Segment<DB> for Transactions {
|
||||
for entry in transactions_walker {
|
||||
let (tx_number, transaction) = entry?;
|
||||
|
||||
static_file_writer.append_transaction(tx_number, transaction)?;
|
||||
static_file_writer.append_transaction(tx_number, &transaction)?;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user