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)
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
Unknown Object (File)
Oct 10 2024, 7:51 AM
Unknown Object (File)
Oct 10 2024, 7:51 AM
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
Branch
tb
Lint
No Lint Coverage
Unit
No Test Coverage

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

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

lib/types/tunnelbroker/messages.js
71
web/settings/account-settings.react.js
94

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.