Skip to content

Commit

Permalink
chore(rpc): inline trait methods of RpcNodeCore impl (#12144)
Browse files Browse the repository at this point in the history
  • Loading branch information
emhane authored Oct 28, 2024
1 parent b36b021 commit 06d73ee
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/optimism/rpc/src/eth/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,18 +123,22 @@ where
type Network = <N as RpcNodeCore>::Network;
type Evm = <N as RpcNodeCore>::Evm;

#[inline]
fn pool(&self) -> &Self::Pool {
self.inner.pool()
}

#[inline]
fn evm_config(&self) -> &Self::Evm {
self.inner.evm_config()
}

#[inline]
fn network(&self) -> &Self::Network {
self.inner.network()
}

#[inline]
fn provider(&self) -> &Self::Provider {
self.inner.provider()
}
Expand Down
4 changes: 4 additions & 0 deletions crates/rpc/rpc-eth-api/src/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,18 +41,22 @@ where
type Network = <T as FullNodeComponents>::Network;
type Evm = <T as FullNodeComponents>::Evm;

#[inline]
fn pool(&self) -> &Self::Pool {
FullNodeComponents::pool(self)
}

#[inline]
fn evm_config(&self) -> &Self::Evm {
FullNodeComponents::evm_config(self)
}

#[inline]
fn network(&self) -> &Self::Network {
FullNodeComponents::network(self)
}

#[inline]
fn provider(&self) -> &Self::Provider {
FullNodeComponents::provider(self)
}
Expand Down

0 comments on commit 06d73ee

Please sign in to comment.