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

[Access] Refactor access subscriptions #7105

Open
wants to merge 1 commit into
base: peter/refactor-access-models
Choose a base branch
from

Conversation

peterargue
Copy link
Contributor

This is part 4 of a series of PRs to refactor common code with /access into separate modules. The goal is to remove cyclical imports resulting from too many common structs being defined in one place.

This PR moves the subscription trackers into their own module since they were the only things with dependencies to engine/access/rpc. This causes cyclical imports when putting code in /access that's referenced in various RPC modules.

@peterargue peterargue requested a review from a team as a code owner February 28, 2025 05:31
@@ -1569,3 +1569,20 @@ func checkBlockStatus(blockStatus flow.BlockStatus) error {
}
return nil
}

// HandleRPCSubscription is a generic handler for subscriptions to a specific type for rpc calls.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is now duplicated in 2 places since the logic is very simple.

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.

3 participants