-
Notifications
You must be signed in to change notification settings - Fork 81
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
feat: remove effective_canister_id
from fn fetch_api_boundary_nodes()
signature
#543
feat: remove effective_canister_id
from fn fetch_api_boundary_nodes()
signature
#543
Conversation
effective_canister_id
from fn fetch_api_boundary_nodes()
signature
74398d9
to
d747b21
Compare
I think the new function should complement, not replace the old one. There are use cases when you might want to fetch the API boundary nodes based on a canister you want to talk to. |
Like this? |
I'd go for fetch_api_boundary_nodes_via -> fetch_api_boundary_nodes_for_canister but that's the idea, indeed. |
2ee341e
to
92971fa
Compare
@mraszyk Once the support for getting API Boundary Nodes via |
This default canister id probably only works when talking with the mainnet. For local replica or testnet, |
Correct. To rectify this we could give a more precise name to the function: |
What do You think @chenyan-dfinity and @adamspofford-dfinity? |
Yeah, that's a more precise name, and we don't need to rename the original function then. |
In fact as @mraszyk has implemented
But it feels that the 3rd one is not necessary, I suggest to have 1 and 2. |
I don't know how boundary node works, so I don't know what's the best API here. I think it depends on the following questions:
|
I updated the current PR with a suggestion to have just two functions, which cover all our needs, see description. |
…:nikolay-komarevskiy/agent-rs into fetch-api-boundary-nodes-via-subnet-read
Description
Following the spec, it would make sense to split
fn fetch_api_boundary_nodes(effective_canister_id)
into two functions:How Has This Been Tested?
system-tests
with respectivecanister_id/subnet_id
.Checklist: