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)
Sun, Oct 27, 4:34 AM
Unknown Object (File)
Sun, Oct 27, 4:34 AM
Unknown Object (File)
Sun, Oct 27, 4:34 AM
Unknown Object (File)
Sun, Oct 27, 4:34 AM
Unknown Object (File)
Sun, Oct 27, 4:32 AM
Unknown Object (File)
Oct 19 2024, 6:05 AM
Unknown Object (File)
Oct 7 2024, 4:59 AM
Unknown Object (File)
Oct 7 2024, 4:59 AM

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.