-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
remove bitswap unwant #5308
remove bitswap unwant #5308
Conversation
It was way to send message that you have block to connected peer that don't send you want message yet. |
I'm not sure if I understand what you're saying but this command attempts to cancel a want. That is, it removes a block from a wantlist, even if some other part of the system is requesting it. I'm proposing that we remove it because it destructively interferes with other commands and isn't the correct way to stop asking for a block. |
cc @alanshaw |
@diasdavid this command really isn't the correct way to solve any problem and it interferes with other commands. 100% of the time, the user should cancel the command that is causing us to want something. Would you object to removing this? |
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.
yes please
No blockers from me on removing it from the Public API. @Stebalien can you please (🙏🏽) give a pass through the specs while you issue this update?
//cc @alanshaw, @achingbrain & @hugomrdias |
@diasdavid done: ipfs/specs#188 |
@Stebalien what's your release plan for this? go-ipfs 0.5? We can deprecate this now in |
Just a normal release? We don't really follow semver (yet). I really wasn't planning on having a deprecation process given that this doesn't currently work (in go at least) and nobody should be using it anyways. The user will just get a "command not found error". I could also just switch it to a dummy command that prints an error. |
Gotcha, lets just remove it then! |
This command messes with internal state and doesn't even work at the moment. If you don't want a block, you should cancel the request that's trying to fetch it. fixes #5295 License: MIT Signed-off-by: Steven Allen <steven@stebalien.com>
…pped by go-IPFS Source: ipfs/kubo#5308
…pped by go-IPFS Source: ipfs/kubo#5308
…pped by go-IPFS Source: ipfs/kubo#5308
…pped by go-IPFS Source: ipfs/kubo#5308
…pped by go-IPFS Source: ipfs/kubo#5308
…pped by go-IPFS Source: ipfs/kubo#5308
…pped by go-IPFS Source: ipfs/kubo#5308
This command messes with internal state and doesn't even work at the moment. If
you don't want a block, you should cancel the request that's trying to fetch it.
An alternative is to replace this command with a dummy command that prints an
error but we'll break user code either way and I'd rather delete code.
fixes #5295