Skip to content

Commit

Permalink
Do not clear assignedStreams when ending streams by subscription (ins…
Browse files Browse the repository at this point in the history
…ight from #1360)
  • Loading branch information
svroonland committed Nov 9, 2024
1 parent ddbd576 commit 8e461ee
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -691,9 +691,7 @@ private[consumer] final class Runloop private (
.as(
state.copy(
pendingRequests =
state.pendingRequests.filterNot(req => Subscription.subscriptionMatches(subscription, req.tp)),
assignedStreams =
state.assignedStreams.filterNot(stream => Subscription.subscriptionMatches(subscription, stream.tp))
state.pendingRequests.filterNot(req => Subscription.subscriptionMatches(subscription, req.tp))
)
)

Expand Down

0 comments on commit 8e461ee

Please sign in to comment.