-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: avoid exposing internal data structures of pod tracker to t…
…he rater (#902) This is a small refactor to modularize the pod tracker. The data structure of UniqueStringList is the implementation detail of pod tracker, hence should not be exposed to the rater. This makes less work for the rater as rater doesn't need to call getActivePods followed by .Contains to check if a pod is active. This also removes the risk of the rater directly manipulating the UniqueStringList. Lastly, if in the future, we decide to replace UniqueStringList with another data structure, no code change needs to be made on the rater side. Signed-off-by: Keran Yang <[email protected]>
- Loading branch information
Showing
3 changed files
with
32 additions
and
14 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
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