-
-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: egress pool change wouldn't take effect until age out
I noticed this while reading through the code; we were not updating the round robin state which we maintain based on the configured egress pool if the config updates and changes the pool. We resolve this here by using an arcswap to keep a read-only reference to the state; since has some async portions it is important to allow it to continue its management of interior mutability so that it doesn't acquire a mutex while awaiting on async state.
- Loading branch information
Showing
2 changed files
with
23 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters