-
Notifications
You must be signed in to change notification settings - Fork 4
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
Local Discovery Support with MDNS #53
Conversation
Is this in relation to CI failure? |
Does this need to be merged BEFORE or AFTER #50? |
a03bf3b
to
82c9b83
Compare
Am in the process of completing this. I had the impression that the original findNode function used the ctx to determine how long getClosestNodes would be executed for. I had implemented findNodeLocal this way assuming this was the case. But now the command for |
Regarding scopes, please read what I wrote here: MatrixAI/Polykey#537 (comment) |
I'm not really sure |
036a91d
to
7ab28ed
Compare
d5723d4
to
2fbe04d
Compare
i've went over how my |
…des find` fix: tests regarding new `js-mdns` integration fix: removed unneccessary config option in `ping.test.ts` [ci-skip]
2fbe04d
to
44ed214
Compare
all tests are passing on CI, everything seems to work as intended. Merge is on the way. |
You forgot to do the final checklist. |
RPC call timeouts are relevant to the client. If the client times out before your MDNS finds the addresses, then either the client cares about the result, maybe you need to find it faster, or extend the timeout. Or you should consider it a long-running call, where one get get results as a list over a long time, rather than a unary call. I would imagine it it's more of a server streaming call rather than a unary call. |
Description
As of
polykey
1.2.1-alpha.20
,js-mdns
has been integrated for the sake of local discovery. Changes tonodes/CommandFind
and related tests will need to be changed in order to support thescopes
property onNodeAddress
, and that some RPCCalls now returnArray<NodeAddress>
rather thanNodeAddress
.Issues Fixed
None
Tasks
nodes/CommandFind
to output multiple addressesFinal checklist