aboutsummaryrefslogtreecommitdiff
path: root/shards.go
diff options
context:
space:
mode:
authoralex <[email protected]>2026-07-08 20:35:41 +0200
committeralex <[email protected]>2026-07-08 20:35:41 +0200
commit880d3ae49f178e61be809fb5d2c68d5f63ea700b (patch)
tree3919f0d42c7cd5f2fe82ea5399008c62db58801f /shards.go
parent513e5e7961ecc9fe8155811d6cbb6a6c77e0638d (diff)
downloadredis-clone-880d3ae49f178e61be809fb5d2c68d5f63ea700b.tar.xz
redis-clone-880d3ae49f178e61be809fb5d2c68d5f63ea700b.zip
gave shards ids
Diffstat (limited to 'shards.go')
-rw-r--r--shards.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/shards.go b/shards.go
index 55ab976..bd19751 100644
--- a/shards.go
+++ b/shards.go
@@ -6,6 +6,7 @@ import (
)
type Shard struct{
mu sync.Mutex
+ id int
data map[string]Item
}