Page MenuHomePhabricator

[services] Tunnelbroker - Skipping sending notif token request when notifications are off by the config flag
ClosedPublic

Authored by max on Feb 23 2023, 5:41 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Nov 10, 1:32 PM
Unknown Object (File)
Sun, Oct 27, 4:55 AM
Unknown Object (File)
Sat, Oct 26, 9:58 PM
Unknown Object (File)
Sat, Oct 26, 9:58 PM
Unknown Object (File)
Sat, Oct 26, 9:58 PM
Unknown Object (File)
Sat, Oct 26, 9:56 PM
Unknown Object (File)
Wed, Oct 23, 8:44 AM
Unknown Object (File)
Oct 21 2024, 3:42 PM
Subscribers

Details

Summary

This diff skipping sending new notif token requests to the bidirectional stream when the notifications are off by the notifications.disable config flag parameter. We don't need to send this message to the stream and should skip checking the existing notification token in this case.

Linear task: ENG-2639

Test Plan
  1. Add the following config parameter to the tunnelbroker.ini file:
[notifications]
disable = true
  1. Connect to the Tunnelbroker's message stream.
  2. The expected result should be no newNotifyTokenRequired message in any case.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

max held this revision as a draft.
max published this revision for review.Feb 23 2023, 6:11 AM
max edited the summary of this revision. (Show Details)
max edited the test plan for this revision. (Show Details)
max added a reviewer: bartek.
bartek added inline comments.
services/tunnelbroker/src/server/mod.rs
189–192 ↗(On Diff #22993)

Still nitpicking about readability, but up to you ;)

This revision is now accepted and ready to land.Feb 23 2023, 6:20 AM
max added inline comments.
services/tunnelbroker/src/server/mod.rs
189–192 ↗(On Diff #22993)

Still nitpicking about readability, but up to you ;)

I would prefer to not create an additional variable here, thanks for commenting ;)