HomePhabricator
Diffusion Comm d22cf359cf99

[services] Tunnelbroker - Notifications config initialization

Description

[services] Tunnelbroker - Notifications config initialization

Summary:
In this diff, we initialize the static configuration as a struct for the internal notifications library to avoid passing repeated parameters on every notification-sending call. We are using a lazy static initialization and parameters from the Tunnelbroker's configuration file.
This diff is related to the abandoned D5329. The static configuration is used in the D5642 diff updates.

Linear task: ENG-1737

Test Plan:

  1. Service is successfully built.
  2. The diff D5641 where the function is used the service is successfully built.

Reviewers: jon, tomek, varun

Reviewed By: jon, tomek

Subscribers: ashoat, tomek, atul, abosh

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

Details

Provenance
maxAuthored on Nov 16 2022, 3:12 AM
Reviewer
jon
Differential Revision
D5641: [services] Tunnelbroker - Notifications config initialization
Parents
rCOMMdc959d543158: [services] Tunnelbroker - Expose `isSandbox` to the Rust
Branches
Unknown
Tags
Unknown