Skip to content

fix: missing kvs close (only that)#21

Merged
zelig merged 4 commits intomasterfrom
fix/missing-kvs-close-2
Apr 23, 2026
Merged

fix: missing kvs close (only that)#21
zelig merged 4 commits intomasterfrom
fix/missing-kvs-close-2

Conversation

@brainiac-five
Copy link
Copy Markdown
Collaborator

Adding the missing Close() function to KVS.

Fixes #18.

zelig
zelig previously approved these changes Jan 17, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds a missing Close() method to the SwarmKvs struct to properly clean up resources by closing the underlying index, addressing issue #18.

Changes:

  • Added Close() method to SwarmKvs that delegates to the underlying index's Close() method
  • Added test case to verify the Close() functionality works correctly

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
kvs.go Implements the Close() method for SwarmKvs to close the underlying index
kvs_test.go Adds test case that creates a KVS, writes data, saves it, and closes it

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread kvs_test.go Outdated
Comment thread kvs.go Outdated
Comment thread kvs.go Outdated
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
zelig and others added 2 commits March 3, 2026 22:08
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@brainiac-five
Copy link
Copy Markdown
Collaborator Author

+1

@zelig zelig merged commit 4055ada into master Apr 23, 2026
3 checks passed
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.

KVS missing Close() method to release Index mutex

3 participants