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

Results.Close should return error #230

Merged
merged 1 commit into from
Mar 4, 2025
Merged

Results.Close should return error #230

merged 1 commit into from
Mar 4, 2025

Conversation

gammazero
Copy link
Contributor

@gammazero gammazero commented Mar 4, 2025

Results.Close should always return error. Even if it is not currently used for anything, having the ability to return error allows for higher level functionality to handle error conditions that may be important for future code. This was removed in v0.8.0, as it did not serve a functional purpose and was almost entirely unused/ignored.

The only ipfs/go-da-xxx modules affected are go-ds-leveldb, go-ds-sql, and go-ds-s3

Results.Close should always return error. Even if it is not currently used for anything, having the ability to return error allows for higher level functionality to handle error conditiond that may be important for future code. This was removed in v0.8.0, as it did not serve a functional purpose.
@gammazero gammazero requested review from hsanjuan and lidel March 4, 2025 05:19
@gammazero gammazero merged commit 12840fe into master Mar 4, 2025
8 checks passed
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.

2 participants