Skip to content

Commit 7e83bc7

Browse files
committed
rm unnecessary clone
1 parent f5e7761 commit 7e83bc7

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

crates/rpc/src/ctx/full.rs

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -185,14 +185,12 @@ where
185185
where
186186
Tasks: TaskSpawner + Clone + 'static,
187187
{
188-
SignetCtx::new(constants, provider, eth_config.clone(), tx_cache, spawner).map(|signet| {
189-
Self {
190-
host,
191-
signet,
192-
shared: SharedContext {
193-
tracing_semaphores: Semaphore::new(eth_config.max_tracing_requests).into(),
194-
},
195-
}
188+
let tracing_semaphores = Semaphore::new(eth_config.max_tracing_requests).into();
189+
190+
SignetCtx::new(constants, provider, eth_config, tx_cache, spawner).map(|signet| Self {
191+
host,
192+
signet,
193+
shared: SharedContext { tracing_semaphores },
196194
})
197195
}
198196

0 commit comments

Comments
 (0)