Skip to content

Commit

Permalink
Fix deadlock on events ingestion error
Browse files Browse the repository at this point in the history
  • Loading branch information
2opremio committed May 9, 2024
1 parent c7b8ddc commit 1646931
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/soroban-rpc/internal/events/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ func (m *MemoryStore) IngestEvents(ledgerCloseMeta xdr.LedgerCloseMeta) error {
}
m.lock.Lock()
if _, err = m.eventsByLedger.Append(bucket); err != nil {
m.lock.Unlock()
return err
}
m.lock.Unlock()
Expand Down

0 comments on commit 1646931

Please sign in to comment.