Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit d1804af

Browse files
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

Lines changed: 2 additions & 1 deletion
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, addrstring) (net.Conn, error)
2223

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

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /