1
0
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:
Vladimir Mihailenco
2022-06-04 16:07:28 +03:00
parent 3a722be811
commit b0bb514059
6 changed files with 40 additions and 27 deletions

View File

@ -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},
}