subscription.EndOfStoredEvents to have a capacity of 1 so it never gets deadlocked.
This commit is contained in:
2
relay.go
2
relay.go
@@ -385,7 +385,7 @@ func (r *Relay) PrepareSubscription(ctx context.Context, filters Filters, opts .
|
|||||||
cancel: cancel,
|
cancel: cancel,
|
||||||
counter: int(current),
|
counter: int(current),
|
||||||
Events: make(chan *Event),
|
Events: make(chan *Event),
|
||||||
EndOfStoredEvents: make(chan struct{}),
|
EndOfStoredEvents: make(chan struct{}, 1),
|
||||||
ClosedReason: make(chan string, 1),
|
ClosedReason: make(chan string, 1),
|
||||||
Filters: filters,
|
Filters: filters,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user