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

Remove RuntimeSourceStorage abstraction #449

Closed
wants to merge 1 commit into from

Conversation

mitjat
Copy link
Collaborator

@mitjat mitjat commented Jun 15, 2023

This PR removes the RuntimeSourceStorage interface in favor of directly using the underlying nodeapi.RuntimeApiLite.

As a TODO in the code said, this wrapper had no utility any more.

My motivation in removing it was that I needed to introduce one more method to the runtime API, and it sucks to have one more layer of boilerplate to pipe the results through.

This PR does not remove the similar ConsensusSourceStorage. It is similarly useless, but it does restructure the data from ConsensusApiLite a little instead of just passing it through, which makes it more work to rip out.

@mitjat
Copy link
Collaborator Author

mitjat commented Jun 16, 2023

Thank you for the review. I accidentally merged PRs out of order, so this change went in as part of #448

@mitjat mitjat closed this Jun 16, 2023
@mitjat mitjat deleted the mitjat/remove-runtime-source-storage branch June 16, 2023 19:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants