Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into alexey/exex-wal-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
shekhirin committed Oct 2, 2024
2 parents 9420e87 + e882d00 commit 743b0ac
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 13 deletions.
2 changes: 1 addition & 1 deletion crates/exex/exex/src/wal/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ impl WalInner {
}

let (removed_notifications, removed_size) = self.storage.remove_notifications(file_ids)?;
debug!(target: "exex::wak", ?removed_notifications, ?removed_size, "Storage was finalized");
debug!(target: "exex::wal", ?removed_notifications, ?removed_size, "Storage was finalized");

self.update_metrics(&block_cache, -(removed_size as i64));

Expand Down
3 changes: 0 additions & 3 deletions crates/storage/db/src/static_file/mask.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@ macro_rules! add_segments {
$(
#[doc = concat!("Mask for ", stringify!($segment), " static file segment. See [`Mask`] for more.")]
#[derive(Debug)]
// TODO: remove next attribute when nightly is fixed (ie. does
// not return wrong warnings for never constructed structs).
#[allow(dead_code)]
pub struct [<$segment Mask>]<FIRST, SECOND = (), THIRD = ()>(Mask<FIRST, SECOND, THIRD>);
)+
}
Expand Down
10 changes: 1 addition & 9 deletions crates/storage/provider/src/providers/blockchain_provider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -821,15 +821,7 @@ impl<N: ProviderNodeTypes> TransactionsProvider for BlockchainProvider2<N> {
self.get_in_memory_or_storage_by_tx(
id.into(),
|provider| provider.transaction_sender(id),
|tx_index, _, block_state| {
Ok(block_state
.block()
.block()
.body
.transactions
.get(tx_index)
.and_then(|transaction| transaction.recover_signer()))
},
|tx_index, _, block_state| Ok(block_state.block().senders.get(tx_index).copied()),
)
}
}
Expand Down

0 comments on commit 743b0ac

Please sign in to comment.