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

Add clear() method to remote bitfields #410

Merged
merged 2 commits into from
Nov 8, 2023
Merged

Conversation

kasperisager
Copy link
Contributor

No description provided.

@kasperisager
Copy link
Contributor Author

@mafintosh This is ready for review.

@@ -66,6 +71,10 @@ class RemoteBitfieldSegment {
return this.tree.chunks
}

refresh () {
this.tree = quickbit.Index.from(this.tree.chunks, BYTES_PER_SEGMENT)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kasperisager fyi current workaround for the insert bug

@mafintosh mafintosh merged commit 66ca5f7 into main Nov 8, 2023
4 checks passed
@mafintosh mafintosh deleted the remote-bitfield-clear branch November 8, 2023 21:16
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