mirror of
https://github.com/logos-messaging/logos-delivery.git
synced 2026-06-05 13:39:59 +00:00
fix logic issue added recently
This commit is contained in:
parent
41a43174be
commit
95f56e653e
@ -137,7 +137,11 @@ proc pruneCompletedChannelReqs(self: ReliableChannel) =
|
|||||||
## segment doesn't trigger a drop on its own — we wait until siblings
|
## segment doesn't trigger a drop on its own — we wait until siblings
|
||||||
## are also accounted for, so the channel-level outcome is decided
|
## are also accounted for, so the channel-level outcome is decided
|
||||||
## from a complete picture.
|
## from a complete picture.
|
||||||
self.pendingMessagingRequests.keepItIf(not it.segmentSendState.isFinal())
|
var channelsWithPending = initHashSet[RequestId]()
|
||||||
|
for entry in self.pendingMessagingRequests:
|
||||||
|
if not entry.segmentSendState.isFinal():
|
||||||
|
channelsWithPending.incl(entry.channelReqId)
|
||||||
|
self.pendingMessagingRequests.keepItIf(it.channelReqId in channelsWithPending)
|
||||||
|
|
||||||
proc onMessageSent(self: ReliableChannel, messagingReqId: RequestId) =
|
proc onMessageSent(self: ReliableChannel, messagingReqId: RequestId) =
|
||||||
## Invoked from this channel's `MessageSentEvent` listener. Flips
|
## Invoked from this channel's `MessageSentEvent` listener. Flips
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user