mirror of
https://github.com/redis/go-redis.git
synced 2025-07-29 17:41:15 +03:00
Pass context to Dialer
This commit is contained in:
@ -39,7 +39,7 @@ func BenchmarkPoolGetPut(b *testing.B) {
|
||||
|
||||
b.RunParallel(func(pb *testing.PB) {
|
||||
for pb.Next() {
|
||||
cn, err := connPool.Get()
|
||||
cn, err := connPool.Get(nil)
|
||||
if err != nil {
|
||||
b.Fatal(err)
|
||||
}
|
||||
@ -81,7 +81,7 @@ func BenchmarkPoolGetRemove(b *testing.B) {
|
||||
|
||||
b.RunParallel(func(pb *testing.PB) {
|
||||
for pb.Next() {
|
||||
cn, err := connPool.Get()
|
||||
cn, err := connPool.Get(nil)
|
||||
if err != nil {
|
||||
b.Fatal(err)
|
||||
}
|
||||
|
Reference in New Issue
Block a user