Hugo Nijhuis 4666bb6503
All checks were successful
CI / build (pull_request) Successful in 16s
Add mutex protection to ConsistentHashRing for thread safety
- Add sync.RWMutex to ConsistentHashRing struct
- Use Lock/Unlock for write operations (AddNode, RemoveNode)
- Use RLock/RUnlock for read operations (GetNode, GetNodes, IsEmpty)

This allows concurrent reads (the common case) while serializing writes,
preventing race conditions when multiple goroutines access the hash ring.

Closes #35

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-10 18:46:38 +01:00
2026-01-08 19:30:02 +01:00
2026-01-09 17:56:50 +01:00
2026-01-08 19:30:02 +01:00
2026-01-08 19:30:02 +01:00
2026-01-08 19:30:02 +01:00
2026-01-08 19:30:02 +01:00
Description
Distributed actor system with event sourcing for Go
800 KiB
Languages
Go 100%