Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(chore) Cleanup duplicate functions/strucs in bloomgateway package #11978

Merged
merged 1 commit into from
Feb 16, 2024

Conversation

chaudum
Copy link
Contributor

@chaudum chaudum commented Feb 16, 2024

What this PR does / why we need it:

tasksForBlocks and boundedTasks are identical structs. The former was introduced when rewriting query logic in the processor.go file.
This PR removes the duplicates and renames it to blockWithTasks.

partition and partitionFingerprintRange are identical functions, for the same reason as the structs mentioned above.
This PR removes the duplicates and renames it to partitionTasks. The test case uses the remaining function.

@chaudum chaudum requested a review from a team as a code owner February 16, 2024 14:45
@chaudum chaudum requested review from owen-d and salvacorts February 16, 2024 14:45
@chaudum chaudum merged commit fb728a6 into main Feb 16, 2024
10 checks passed
@chaudum chaudum deleted the chaudum/cleanup-duplicate-functions branch February 16, 2024 16:12
rhnasc pushed a commit to inloco/loki that referenced this pull request Apr 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants