From 883513ddf3af1f41549d6b58f520a02e3f2716da Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Mon, 30 Sep 2024 14:58:01 +0200 Subject: [PATCH] fix: sequencer client must be arced --- crates/optimism/rpc/src/eth/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/optimism/rpc/src/eth/mod.rs b/crates/optimism/rpc/src/eth/mod.rs index 844ea170075b..57ce44100f26 100644 --- a/crates/optimism/rpc/src/eth/mod.rs +++ b/crates/optimism/rpc/src/eth/mod.rs @@ -67,7 +67,7 @@ pub struct OpEthApi { inner: Arc>, /// Sequencer client, configured to forward submitted transactions to sequencer of given OP /// network. - sequencer_client: OnceCell, + sequencer_client: Arc>, } impl OpEthApi { @@ -93,7 +93,7 @@ impl OpEthApi { ctx.config.proof_permits, ); - Self { inner: Arc::new(inner), sequencer_client: OnceCell::new() } + Self { inner: Arc::new(inner), sequencer_client: Arc::new(OnceCell::new()) } } }