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
Unknown Object (File)
Oct 17 2024, 5:13 PM
Unknown Object (File)
Oct 14 2024, 4:27 PM
Unknown Object (File)
Oct 14 2024, 4:27 PM
Unknown Object (File)
Oct 14 2024, 4:27 PM
Unknown Object (File)
Oct 14 2024, 4:27 PM
Unknown Object (File)
Oct 14 2024, 4:26 PM
Unknown Object (File)
Oct 13 2024, 7:50 AM
Unknown Object (File)
Oct 12 2024, 11:58 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
Branch
publish-broadcasting-2
Lint
No Lint Coverage
Unit
No Test Coverage

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