File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -137,7 +137,11 @@ proc pruneCompletedChannelReqs(self: ReliableChannel) =
137137 # # segment doesn't trigger a drop on its own — we wait until siblings
138138 # # are also accounted for, so the channel-level outcome is decided
139139 # # from a complete picture.
140- self.pendingMessagingRequests.keepItIf (not it.segmentSendState.isFinal ())
140+ var channelsWithPending = initHashSet [RequestId ]()
141+ for entry in self.pendingMessagingRequests:
142+ if not entry.segmentSendState.isFinal ():
143+ channelsWithPending.incl (entry.channelReqId)
144+ self.pendingMessagingRequests.keepItIf (it.channelReqId in channelsWithPending)
141145
142146proc onMessageSent (self: ReliableChannel , messagingReqId: RequestId ) =
143147 # # Invoked from this channel's `MessageSentEvent` listener. Flips
You can’t perform that action at this time.
0 commit comments