Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
noot committed Oct 4, 2024
1 parent 4f9bfe0 commit 09001ad
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/astria-sequencer/src/app/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -662,6 +662,10 @@ impl App {
self.metrics
.set_transactions_in_mempool_total(self.mempool.len().await);

// XXX: we need to unwrap the app's state arc to write
// to the ephemeral store.
// this is okay as we should have the only reference to the state
// at this point.
let mut state_tx = Arc::try_begin_transaction(&mut self.state)
.expect("state Arc should not be referenced elsewhere");
state_tx.object_put(EXECUTION_RESULTS_KEY, execution_results);
Expand Down

0 comments on commit 09001ad

Please sign in to comment.