Page MenuHomePhabricator

[lib] add sending Tunnelbroker message with already defined `messageID`
ClosedPublic

Authored by kamil on May 16 2024, 8:53 AM.
Tags
None
Referenced Files
F3525107: D12076.id40583.diff
Mon, Dec 23, 3:43 PM
F3525106: D12076.id40581.diff
Mon, Dec 23, 3:43 PM
F3525105: D12076.id40293.diff
Mon, Dec 23, 3:43 PM
F3525091: D12076.id.diff
Mon, Dec 23, 3:43 PM
F3525082: D12076.diff
Mon, Dec 23, 3:43 PM
Unknown Object (File)
Tue, Nov 26, 2:00 AM
Unknown Object (File)
Nov 22 2024, 9:26 AM
Unknown Object (File)
Oct 17 2024, 5:13 PM
Subscribers

Details

Summary

Messages to other devices are generated when processing store ops, that's when messageID is generated, and we want to send it without generating new one.

Test Plan

Test sending Tunnelbroker messsages

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

kamil held this revision as a draft.
kamil published this revision for review.May 16 2024, 9:39 AM
This revision is now accepted and ready to land.May 17 2024, 2:03 AM
lib/tunnelbroker/tunnelbroker-context.js
388–392 ↗(On Diff #40293)

I was thinking about an alternative approach - this might save some from introducing sendMessageWithID but it might have more drawbacks that I'm not aware of.

address review

lib/tunnelbroker/tunnelbroker-context.js
388–392 ↗(On Diff #40293)

I think that's a good idea