Skip to content

Commit

Permalink
fix some bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
diiyw committed Jan 9, 2025
1 parent c04b356 commit 445d24d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ func TestClient_SetName(t *testing.T) {
n := &Nodis{}
w := redis.NewWriter(&bytes.Buffer{})
cmd := redis.Command{
Args: []string{"SETNAME"},
Args: []string{"SETNAME", "test"},
}

client(n, &redis.Conn{Writer: w}, cmd)
Expand Down
2 changes: 1 addition & 1 deletion redis/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const (
)

var (
clientLocker sync.Locker
clientLocker sync.RWMutex
Clients = make(map[int]*Conn)
)

Expand Down

0 comments on commit 445d24d

Please sign in to comment.