Skip to content

Commit

Permalink
Wait for the insertion mutex in WriteMessageFromSequencer
Browse files Browse the repository at this point in the history
  • Loading branch information
PlasmaPower committed Jul 31, 2024
1 parent 24afbe4 commit 2ba7a90
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions arbnode/transaction_streamer.go
Original file line number Diff line number Diff line change
Expand Up @@ -952,9 +952,7 @@ func (s *TransactionStreamer) WriteMessageFromSequencer(
if err := s.ExpectChosenSequencer(); err != nil {
return err
}
if !s.insertionMutex.TryLock() {
return execution.ErrSequencerInsertLockTaken
}
s.insertionMutex.Lock()
defer s.insertionMutex.Unlock()

msgCount, err := s.GetMessageCount()
Expand Down

0 comments on commit 2ba7a90

Please sign in to comment.