Page MenuHomePhabricator

[tunnelbroker] Refactor Websocket session init
ClosedPublic

Authored by bartek on Oct 3 2024, 1:36 PM.
Tags
None
Referenced Files
F3337533: D13605.diff
Thu, Nov 21, 4:48 PM
Unknown Object (File)
Sun, Nov 10, 2:39 PM
Unknown Object (File)
Sun, Nov 10, 1:09 AM
Unknown Object (File)
Fri, Nov 8, 10:37 PM
Unknown Object (File)
Fri, Nov 8, 1:48 PM
Unknown Object (File)
Sun, Nov 3, 3:56 AM
Unknown Object (File)
Sun, Nov 3, 3:56 AM
Unknown Object (File)
Sun, Nov 3, 3:54 AM
Subscribers

Details

Summary

Separated AMQP and DeviceInfo/auth logic from initiate_session(). Moved channel creation deeper into WebsocketSession::init_amqp()

Depends on D13604

Test Plan

cargo build

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

bartek held this revision as a draft.
bartek edited the test plan for this revision. (Show Details)
bartek edited the summary of this revision. (Show Details)
bartek published this revision for review.Oct 4 2024, 8:38 AM
kamil accepted this revision.EditedOct 7 2024, 2:04 AM

Looks a lot cleaner now

services/tunnelbroker/src/websockets/session.rs
204 ↗(On Diff #44902)

I would prefer something like get_device_info_from_frame

This revision is now accepted and ready to land.Oct 7 2024, 2:04 AM