Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3521377
D13325.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
524 B
Referenced Files
None
Subscribers
None
D13325.diff
View Options
diff --git a/lib/tunnelbroker/peer-to-peer-context.js b/lib/tunnelbroker/peer-to-peer-context.js
--- a/lib/tunnelbroker/peer-to-peer-context.js
+++ b/lib/tunnelbroker/peer-to-peer-context.js
@@ -194,7 +194,9 @@
);
await Promise.all(devicePromises);
- return Object.keys(sentMessagesMap);
+ // Returning messageIDs of failed messages.
+ const sentMessages = new Set(Object.keys(sentMessagesMap));
+ return messageIDs?.filter(id => !sentMessages.has(id)) ?? [];
}
const AUTOMATIC_RETRY_FREQUENCY = 30 * 1000;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Dec 24, 3:24 AM (15 h, 40 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2698120
Default Alt Text
D13325.diff (524 B)
Attached To
Mode
D13325: [lib] update `processOutboundP2PMessages` to return failed message IDs
Attached
Detach File
Event Timeline
Log In to Comment