mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-01-26 15:48:13 -05:00
perf(evm-config): return &Arc<ChainSpec> (#12748)
This commit is contained in:
@@ -55,7 +55,7 @@ impl EthEvmConfig {
|
||||
}
|
||||
|
||||
/// Returns the chain spec associated with this configuration.
|
||||
pub fn chain_spec(&self) -> &ChainSpec {
|
||||
pub const fn chain_spec(&self) -> &Arc<ChainSpec> {
|
||||
&self.chain_spec
|
||||
}
|
||||
}
|
||||
|
||||
@@ -50,7 +50,7 @@ impl OpEvmConfig {
|
||||
}
|
||||
|
||||
/// Returns the chain spec associated with this configuration.
|
||||
pub fn chain_spec(&self) -> &OpChainSpec {
|
||||
pub const fn chain_spec(&self) -> &Arc<OpChainSpec> {
|
||||
&self.chain_spec
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user