fix: sequencer client must be arced (#11337)

This commit is contained in:
Matthias Seitz
2024-09-30 15:10:33 +02:00
committed by GitHub
parent 92aeff083b
commit 24b6341205

View File

@ -67,7 +67,7 @@ pub struct OpEthApi<N: FullNodeComponents> {
inner: Arc<EthApiNodeBackend<N>>,
/// Sequencer client, configured to forward submitted transactions to sequencer of given OP
/// network.
sequencer_client: OnceCell<SequencerClient>,
sequencer_client: Arc<OnceCell<SequencerClient>>,
}
impl<N: FullNodeComponents> OpEthApi<N> {
@ -93,7 +93,7 @@ impl<N: FullNodeComponents> OpEthApi<N> {
ctx.config.proof_permits,
);
Self { inner: Arc::new(inner), sequencer_client: OnceCell::new() }
Self { inner: Arc::new(inner), sequencer_client: Arc::new(OnceCell::new()) }
}
}