Skip to content

Commit 666d168

Browse files
committed
Fix deadlock with highest queued slot update logic
1 parent 8b727bf commit 666d168

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

geyser/handler_memory.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ func (h *MemoryAccountWithDataUpdateHandler) onStateObserved(ctx context.Context
200200
h.highestQueuedSlotUpdateMu.RLock()
201201
highestQueuedSlotUpdate = h.highestQueuedSlotUpdate[base58MemoryAccountAddress]
202202
if observedAtSlot < highestQueuedSlotUpdate {
203+
h.highestQueuedSlotUpdateMu.RUnlock()
203204
return nil
204205
}
205206
h.highestQueuedSlotUpdateMu.RUnlock()

0 commit comments

Comments
 (0)