Skip to content

Commit d1804af

Browse files
committed
Fixed upgrade redis
1 parent 50a8b74 commit d1804af

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

options.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package redis
22

33
import (
4+
"context"
45
"crypto/tls"
56
"net"
67
"time"
@@ -18,7 +19,7 @@ type Options struct {
1819

1920
// Dialer creates new network connection and has priority over
2021
// Network and Addr options.
21-
Dialer func() (net.Conn, error)
22+
Dialer func(ctx context.Context, network, addr string) (net.Conn, error)
2223

2324
// Optional password. Must match the password specified in the
2425
// requirepass server configuration option.

0 commit comments

Comments
 (0)