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

go/storage/api: Make metrics wrapper return proper types #4411

Merged
merged 2 commits into from
Dec 24, 2021

Conversation

kostko
Copy link
Member

@kostko kostko commented Dec 24, 2021

No description provided.

@kostko kostko added the c:bug Category: bug label Dec 24, 2021
@kostko kostko force-pushed the kostko/fix/rt-client-lsb-nil branch from d4ff038 to 19e05be Compare December 24, 2021 08:22
@kostko kostko marked this pull request as ready for review December 24, 2021 08:27
Previously the metrics wrapper tried to support all of the different backend
interfaces, causing problems with places that perform type checks to determine
which backend type is in use.

The metrics wrapper is now changed to return a type matching the wrapped backend
type.
@kostko kostko force-pushed the kostko/fix/rt-client-lsb-nil branch from 8be3d58 to 8b5073b Compare December 24, 2021 08:44
@kostko kostko changed the title go/runtime/client: Handle non-local backend in GetLastRetainedBlock go/storage/api: Make metrics wrapper return proper types Dec 24, 2021
@kostko
Copy link
Member Author

kostko commented Dec 24, 2021

Updated the PR to fix the metrics wrapper instead.

@kostko kostko merged commit c5e256e into master Dec 24, 2021
@kostko kostko deleted the kostko/fix/rt-client-lsb-nil branch December 24, 2021 09:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c:bug Category: bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants