Page MenuHomePhabricator

[tunnelbroker] Refactor Websocket session init
ClosedPublic

Authored by bartek on Oct 3 2024, 1:36 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Dec 18, 11:38 AM
Unknown Object (File)
Wed, Dec 18, 11:38 AM
Unknown Object (File)
Wed, Dec 18, 11:38 AM
Unknown Object (File)
Wed, Dec 18, 11:38 AM
Unknown Object (File)
Wed, Dec 11, 4:59 PM
Unknown Object (File)
Tue, Dec 3, 4:26 PM
Unknown Object (File)
Thu, Nov 28, 7:19 AM
Unknown Object (File)
Wed, Nov 27, 8:45 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
Lint Not Applicable
Unit
Tests Not Applicable

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