HomePhabricator
Diffusion Comm 6b6d2067a16f

[services] Tunnelbroker - Fix `amqpReady` assignment

Description

[services] Tunnelbroker - Fix amqpReady assignment

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.

Reviewers: karol, tomek

Reviewed By: tomek

Subscribers: ashoat, tomek, adrian, atul, karol, abosh

Differential Revision: https://phab.comm.dev/D4742

Details

Provenance
maxAuthored on Aug 22 2022, 6:48 AM
Reviewer
tomek
Differential Revision
D4742: [services] Tunnelbroker - Fix `amqpReady` assignment
Parents
rCOMMa767de4a3107: [services] Tunnelbroker - Add `waitUntilReady` function in AmqpManager
Branches
Unknown
Tags
Unknown