Page MenuHomePhabricator

[lib] improve naming in Tunnelbroker socket
ClosedPublic

Authored by kamil on Jul 23 2024, 6:45 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Nov 27, 10:39 AM
Unknown Object (File)
Wed, Nov 27, 7:47 AM
Unknown Object (File)
Fri, Nov 1, 8:15 PM
Unknown Object (File)
Oct 14 2024, 1:02 PM
Unknown Object (File)
Oct 14 2024, 1:02 PM
Unknown Object (File)
Oct 14 2024, 1:02 PM
Unknown Object (File)
Oct 14 2024, 1:02 PM
Unknown Object (File)
Oct 14 2024, 1:02 PM
Subscribers

Details

Summary

ENG-8621.

sendMessage -> sendMessageToDevice: this method is used with TunnelbrokerClientMessageToDevice prop which is device specific, alternatively this can be sendMessageToPeer
sendMessageToDeviceRequest -> sendMessage: this is a generic method interacting with raw socket and promise abstraction, alternatively sendMessageRequest

Depends on D12857

Test Plan

Just rename, yarn flow:all

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.Jul 23 2024, 7:06 AM
tomek added inline comments.
lib/tunnelbroker/tunnelbroker-context.js
324 ↗(On Diff #42695)

Sounds quite strange to have a plural name as the argument type

lib/types/tunnelbroker/messages.js
71 ↗(On Diff #42695)
web/settings/account-settings.react.js
94 ↗(On Diff #42695)

Should we also rename this prop?

This revision is now accepted and ready to land.Jul 24 2024, 6:24 AM
This revision was automatically updated to reflect the committed changes.