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

kad-dht/README: Document key on Message during PUT_VALUE #373

Merged
merged 1 commit into from Nov 16, 2021

Conversation

mxinden
Copy link
Member

@mxinden mxinden commented Oct 30, 2021

On PUT_VALUE the Golang implementation expects key on Message to
equal key on Record when handling a request (see go-1). This patch
updates the specification accordingly.

Caught by @pradt2 see libp2p/rust-libp2p#2309.

On PUT_VALUE the Golang implementation expects `key` on `Message` to
equal `key` on `Record` when handling a request (see [go-1]). This patch
updates the specification accordingly.

[go-1]: https://github.com/libp2p/go-libp2p-kad-dht/blob/7724838e46d1822b28fd20611ab9815d4ce2d94f/handlers.go#L151-L164
@mxinden
Copy link
Member Author

mxinden commented Nov 11, 2021

Friendly ping @aschmahmann.

1 similar comment
@mxinden
Copy link
Member Author

mxinden commented Nov 16, 2021

Friendly ping @aschmahmann.

Copy link
Contributor

@aschmahmann aschmahmann left a comment

Choose a reason for hiding this comment

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

Looks right to me, thanks for the PR and the pings 😄

I'm not sure why the decision was made here to echo back the full record, and if we're doing that why not echo back a "better" record if the DHT server has it, but we're just documenting existing protocol behavior here 🤷.

@mxinden mxinden merged commit 9c12531 into libp2p:master Nov 16, 2021
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.

None yet

2 participants