Skip to content

Conversation

@dynamic-calm
Copy link
Owner

No description provided.

@dynamic-calm dynamic-calm requested a review from Copilot November 15, 2025 09:25
Copy link

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 migrates the internal store from a map with manual mutex locking to using Go's concurrent-safe sync.Map for improved concurrency handling.

Key Changes:

  • Replaced map[string][]byte with sync.Map for thread-safe operations without explicit locking
  • Added type assertions when retrieving values from sync.Map since it stores any type
  • Fixed spelling errors in test error messages

Reviewed Changes

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

File Description
internal/store/store.go Refactored Store to use sync.Map instead of manual mutex locking with a regular map
internal/kv/kv_test.go Corrected spelling errors in test error messages

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

@dynamic-calm dynamic-calm merged commit 9ae5ed6 into main Nov 15, 2025
2 checks passed
@dynamic-calm dynamic-calm deleted the feat/sync-map branch November 15, 2025 12:30
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