Page MenuHomePhabricator

[services] Tunnelbroker - Fix `amqpReady` assignment
ClosedPublic

Authored by max on Aug 4 2022, 11:09 AM.
Tags
None
Referenced Files
F2159907: D4742.id15815.diff
Mon, Jul 1, 7:58 AM
Unknown Object (File)
Wed, Jun 26, 4:22 PM
Unknown Object (File)
Wed, Jun 26, 11:04 AM
Unknown Object (File)
Wed, Jun 26, 5:25 AM
Unknown Object (File)
Wed, Jun 26, 5:25 AM
Unknown Object (File)
Wed, Jun 26, 5:25 AM
Unknown Object (File)
Wed, Jun 26, 5:25 AM
Unknown Object (File)
Wed, Jun 26, 5:22 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.