aboutsummaryrefslogtreecommitdiff
path: root/handlers.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 /handlers.go
parent513e5e7961ecc9fe8155811d6cbb6a6c77e0638d (diff)
downloadredis-clone-880d3ae49f178e61be809fb5d2c68d5f63ea700b.tar.xz
redis-clone-880d3ae49f178e61be809fb5d2c68d5f63ea700b.zip
gave shards ids
Diffstat (limited to 'handlers.go')
-rw-r--r--handlers.go3
1 files changed, 0 insertions, 3 deletions
diff --git a/handlers.go b/handlers.go
index aefea85..1a04db9 100644
--- a/handlers.go
+++ b/handlers.go
@@ -59,9 +59,6 @@ func handleExists(conn net.Conn, args []string) {
}
func handleSet(conn net.Conn, args []string) {
- db.mu.Lock()
- defer db.mu.Unlock()
-
if len(args) != 3 {
err := errors.New("wrong number of arguments for 'SET'")
conn.Write(serializeRESP(err))