-
Notifications
You must be signed in to change notification settings - Fork 531
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WriteRequest: change function args to LabelAdapter (#5302)
This makes things consistent: all these functions' arguments now come from package `mimirpb`. Primary motivation for this change was to remove spurious overhead under `-tags stringlabels` from tests like `BenchmarkDistributor_Push`, where `ToWriteRequest` was converting `Labels` to `[]LabelAdapter` on every iteration. The one place that used `ToWriteRequest` outside of tests is ruler, so it now has to make the `Labels` to `[]LabelAdapter` conversion explicitly.
- Loading branch information
Showing
5 changed files
with
155 additions
and
161 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.