Page MenuHomePhabricator

[services] Tunnelbroker - Fix `amqpReady` assignment
ClosedPublic

Authored by max on Aug 4 2022, 11:09 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Dec 16, 6:34 PM
Unknown Object (File)
Mon, Dec 16, 12:23 AM
Unknown Object (File)
Sun, Dec 15, 8:00 AM
Unknown Object (File)
Sun, Dec 15, 8:00 AM
Unknown Object (File)
Sun, Dec 15, 8:00 AM
Unknown Object (File)
Sun, Dec 15, 8:00 AM
Unknown Object (File)
Sun, Dec 15, 7:49 AM
Unknown Object (File)
Sun, Dec 8, 10:14 PM

Details

Summary

This diff is a part of the stack.

The private variable amqpReady in AmqpManager reflects the state of the AMQP Client connection state.
To update the state we must use only two callbacks:

This diff introduces assignments on OnReady() and removes the unneeded assignments.

Related linear task: ENG-1495

Test Plan

Successfully built using yarn run-tunnelbroker-service-in-sandbox command.
Passing all AMQP unit tests in the last diff D4749 in a stack.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

max held this revision as a draft.
services/tunnelbroker/src/Amqp/AmqpManager.cpp
69 ↗(On Diff #15327)

This is handled by this->amqpChannel->onError from above and we don't need it.

71 ↗(On Diff #15327)

This is handled by introducing this->amqpChannel->onReady in this diff and we should remove it from here.

max published this revision for review.Aug 4 2022, 4:51 PM
max edited the test plan for this revision. (Show Details)
This revision is now accepted and ready to land.Aug 9 2022, 9:17 AM

Merge on a parent changes.