-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Move RPC router from Client/Server and into BaseDeps #8559
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! This looks great. I'm not that familiar with agent/router, but I think this all made sense to me. A few minor suggestions.
The test failures reproduce locally. I think the test assumptions need to change now that there are multiple coordinates? Or does |
2ed882c
to
4d38042
Compare
@dnephin Our public docs say those APIs are supposed to be only for WAN.
So I probably should filter out the LAN Area servers from the |
Ah, makes sense! If it's a concern of the API, maybe filter it out in the api/rpc endpoints instead of |
e8d7b62
to
37e016e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! This is great.
I would have expected the filtering for LAN to happen in the api/rpc handler, but I don't know this code very well, so maybe that expectation is wrong. One suggestion for the comment to make it more visible, but not a blocker.
This will allow it to be a shared component which is needed for AutoConfig
37e016e
to
cc37b46
Compare
@dnephin is there any reason why the BaseDeps changes were not backported? |
Not really. I think it would be ok to backport them. I generally wait to backport larger refactor changes to reduce the risk of regressions in patch releases. I see this is tagged for backport so I can prepare a PR to backport all the necessary changes to avoid conflicts when this one is merged. |
Merging #8573 should allow this PR to be automatically backported. I tried it out locally and it merged clean. |
🍒✅ Cherry pick of commit f97cc04 onto |
This will allow it to be a shared component which is needed for AutoConfig
This will allow it to be a shared component which is needed for AutoConfig