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 BaseBlockTracker #168

Merged
merged 1 commit into from
Jul 25, 2023
Merged

Remove BaseBlockTracker #168

merged 1 commit into from
Jul 25, 2023

Conversation

Gudahtt
Copy link
Member

@Gudahtt Gudahtt commented Jul 25, 2023

The base block tracker has been inlined into the polling block tracker and the subscribe block tracker. The base class has been removed. This was done to improve readability and allow for further simplications in later PRs.

A BlockTracker type has been added to represent the common block tracker interface. This type can be used anywhere we might want to use a block tracker where we don't care which specific type it is.

@Gudahtt Gudahtt marked this pull request as ready for review July 25, 2023 19:50
@Gudahtt Gudahtt requested a review from a team as a code owner July 25, 2023 19:50
The base block tracker has been inlined into the polling block tracker
and the subscribe block tracker. The base class has been removed. This
was done to improve readability and allow for further simplications in
later PRs.

A `BlockTracker` type has been added to represent the common block
tracker interface. This type can be used anywhere we might want to use
a block tracker where we don't care which specific type it is.
Copy link
Contributor

@mcmire mcmire left a comment

Choose a reason for hiding this comment

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

Had one comment, but it's non-blocking. Looks good!

this._synchronize();
}

protected async _end(): Promise<void> {
private async _end(): Promise<void> {
Copy link
Contributor

@mcmire mcmire Jul 25, 2023

Choose a reason for hiding this comment

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

Nit: Do we need this method? (If you wanted to remove this in a later step so that it's easy to see that there are no differences, that's fine)

Copy link
Member Author

Choose a reason for hiding this comment

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

I don't think so! I tried to limit the scope of this PR though. I started going down the path of simplifying things, but ended up going too far so I scrapped it.

@Gudahtt Gudahtt merged commit 1ad6dee into main Jul 25, 2023
4 checks passed
@Gudahtt Gudahtt deleted the remove-inheritance branch July 25, 2023 21:19
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