Skip to content

Commit b87c88b

Browse files
committed
Fix storing the sequence inside the vaa seqs
1 parent d5967af commit b87c88b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

apps/hermes/server/src/state/wormhole.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,10 @@ where
9797
observed_vaa_seqs.pop_first();
9898
}
9999

100+
observed_vaa_seqs.insert(sequence);
101+
// Drop the lock to allow other threads to access the state.
102+
drop(observed_vaa_seqs);
103+
100104
// Hand the VAA to the aggregate store.
101105
match Aggregates::store_update(self, Update::Vaa(vaa_bytes)).await {
102106
Ok(is_stored) => is_stored,

0 commit comments

Comments
 (0)