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

Introduces NetworkServerBuilder to enable inversion of grpc service registration #2173

Closed
wants to merge 1 commit into from

Conversation

AhmedSoliman
Copy link
Contributor

@AhmedSoliman AhmedSoliman commented Oct 24, 2024

This allows roles/services to add services to node-rpc-server on startup with no requirement for Node to know about service construction requirements.

Part of this PR temporarily removes QueryStorage API from NodeSvc as it should not belong here. This should either move to its own gRPC service (thanks to the new registration mechanic) or to be removed completely if this is to be replaced by node-to-node networking.

Stack created with Sapling. Best reviewed with ReviewStack.

…egistration

This allows roles/services to add services to node-rpc-server on startup with no requirement for Node to know about service construction requirements.


Part of this PR temporarily removes QueryStorage API from NodeSvc as it should not belong here. This should either move to its own gRPC service (thanks to the new registration mechanic) or to be removed completely if this is to be replaced by node-to-node networking.
Copy link

github-actions bot commented Oct 24, 2024

Test Results

  5 files  ±0    5 suites  ±0   3m 24s ⏱️ -5s
 47 tests +2   46 ✅ +1  1 💤 +1  0 ❌ ±0 
119 runs  +5  117 ✅ +3  2 💤 +2  0 ❌ ±0 

Results for commit a8407b3. ± Comparison against base commit 7dbca38.

♻️ This comment has been updated with latest results.

@pcholakov
Copy link
Contributor

This looks like a very neat change directionally!

Copy link
Contributor

@tillrohrmann tillrohrmann left a comment

Choose a reason for hiding this comment

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

Great work @AhmedSoliman. The changes look good to me. This PR will be merged as part of #2182.

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