Skip to content

Conversation

gammazero
Copy link
Contributor

@gammazero gammazero commented Jun 16, 2025

On ipfs shutdown, MFS closes its root which adds an empty directory block. This results in an error because bitswap is shutdown, even though there is no real error to address.

To fix this, this PR changes NotifyNewBlocks to not return any error if bitswap is closed. Reporting this error is not necessary because there is not action that can or should be taken to handle it, and bitswap was closed intentionally so this is not even an unexpected situation.

@gammazero gammazero requested a review from a team as a code owner June 16, 2025 16:07
…lock. This results in an error because bitswap is shutdown, even though there is no real error to address.

To fix this, this PR changes NotifyNewBlocks to not return any error if bitswap is closed. Reporting this error is not necessary because there is not action that can or should be taken to handle it, and bitswap was closed intentionally so this is not even an unexpected situation.
@gammazero gammazero force-pushed the no-notify-error-when-closed branch from b15563f to 34f0ac3 Compare June 16, 2025 16:48
@gammazero gammazero merged commit 5149ba5 into main Jun 16, 2025
15 checks passed
@gammazero gammazero deleted the no-notify-error-when-closed branch June 16, 2025 18:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant