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

Do not return error when storing existing value. #68

Merged
merged 1 commit into from
Aug 29, 2022

Conversation

gammazero
Copy link
Collaborator

The blockstore uses the immutable option, so no longer requires that an error is returned when storing an existing value. This allows an existing value to be stored without having to handle an error when doing so.

  • Move some things outside of bucket lock
  • Change GCScanFree option to GCFastScan

The blockstore uses the immutable option, so no longer requires that an error is returned when storing an existing value. This allows an existing value to be stored without having to handle an error when doing so.

- Move some things outside of bucket lock
- Change GCScanFree option to GCFastScan
@gammazero gammazero requested a review from masih August 29, 2022 20:27
@github-actions
Copy link

Suggested version: v0.2.5
Comparing to: v0.2.4 (diff)

Changes in go.mod file(s):

(empty)

gorelease says:

# github.com/ipld/go-storethehash/store
## incompatible changes
GCScanFree: removed
## compatible changes
GCFastScan: added

# summary
Suggested version: v0.3.0

gocompat says:

(empty)

@gammazero gammazero merged commit b5a6bac into master Aug 29, 2022
@gammazero gammazero deleted the fix-store-existing-value branch August 29, 2022 23:36
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