mirror of
https://github.com/redis/go-redis.git
synced 2025-07-29 17:41:15 +03:00
fix: update COMMAND parser for Redis 7
This commit is contained in:
@ -41,7 +41,7 @@ func NewClusterClientStub(resp []byte) *ClientStub {
|
||||
|
||||
client := NewClusterClient(&ClusterOptions{
|
||||
PoolSize: 128,
|
||||
Addrs: []string{"127.0.0.1:6379"},
|
||||
Addrs: []string{":6379"},
|
||||
Dialer: func(ctx context.Context, network, addr string) (net.Conn, error) {
|
||||
return stub.stubConn(initHello), nil
|
||||
},
|
||||
@ -118,7 +118,7 @@ func BenchmarkDecode(b *testing.B) {
|
||||
}
|
||||
|
||||
benchmarks := []Benchmark{
|
||||
{"single", NewClientStub},
|
||||
{"server", NewClientStub},
|
||||
{"cluster", NewClusterClientStub},
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user