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

use the defined querypages callback type at all the places implementing IndexClient.QueryPages #5463

Merged

Conversation

sandeepsukhani
Copy link
Contributor

What this PR does / why we need it:
We have a lot of places where we use the function signature instead of the defined Callback while accepting it as a parameter. This causes us to not satisfy the interfaces doing it in one way or the other.
This PR moves the type near the QueryPages interface, which is where it mostly belongs and changes all the places to use the defined type instead of the function signature.

@sandeepsukhani sandeepsukhani requested a review from a team as a code owner February 23, 2022 17:50
@sandeepsukhani sandeepsukhani changed the title use the defined querypages callback in all the types implementing QueryPages function from IndexClient interface use the defined querypages callback type at all the places implementing IndexClient.QueryPages Feb 23, 2022
Copy link
Contributor

@MasslessParticle MasslessParticle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@kavirajk kavirajk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice cleanup! Thanks @sandeepsukhani

@kavirajk kavirajk merged commit 9f301cf into grafana:main Feb 24, 2022
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.

3 participants