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

Updating mutable data without updating seq #24

Closed
jankaszel opened this issue Oct 27, 2019 · 2 comments
Closed

Updating mutable data without updating seq #24

jankaszel opened this issue Oct 27, 2019 · 2 comments

Comments

@jankaszel
Copy link

jankaszel commented Oct 27, 2019

While playing aroud with mutable.put, I was trying to force an error for not updating seq while updating a value. I did expect this to raise an error, but instead the callback has been called with err undefined.

When calling mutable.get to get the value, I've received the value that was set with the initial put call. Is this intended behaviour?

This can easily be replicated by removing the sequence update from the mutable-put-get example: https://github.com/hyperswarm/dht/blob/master/examples/mutable-put-get.js#L26

@davidmarkclements
Copy link
Contributor

good question .. I'd say.. probably, @mafintosh thoughts?

@davidmarkclements
Copy link
Contributor

fixed in #26

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

No branches or pull requests

2 participants