Page MenuHomePhabricator

[services] Tunnelbroker - Fix `amqpReady` assignment
ClosedPublic

Authored by max on Aug 4 2022, 11:09 AM.
Tags
None
Referenced Files
F3350689: D4742.id15327.diff
Fri, Nov 22, 11:38 PM
F3349992: D4742.diff
Fri, Nov 22, 8:09 PM
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

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
Branch
fix-amqpReady-assignment
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

max held this revision as a draft.
services/tunnelbroker/src/Amqp/AmqpManager.cpp
69

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

71

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.