-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[finagle/finagle-core] Factor shared methods out of TrafficDistributor
Problem: We want to make some substantial changes to TrafficDistributor, as part of CSL-10039. However, the class is currently fairly large, and handles multiple concerns: lifecycle methods for adding new nodes, and distributing traffic between differently weighted load balancers. Some of its methods are also used by other classes. Solution: Before we work on major functional changes, refactor shared concerns into separate files. This should make our future changes somewhat simpler. This change creates two new classes, DistributorTypes and AddrLifecycle, and factor some of the shared logic out of TrafficDistributor. This change should introduce no functional changes. Differential Revision: https://phabricator.twitter.biz/D600745
- Loading branch information
Showing
11 changed files
with
258 additions
and
189 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
Oops, something went wrong.