From d1804af1c467845e37c8eea5164462cd48f252a4 Mon Sep 17 00:00:00 2001 From: lyric Date: Thu, 13 Jun 2019 21:05:44 +0800 Subject: [PATCH] Fixed upgrade redis --- options.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/options.go b/options.go index a5b575d..906b139 100644 --- a/options.go +++ b/options.go @@ -1,6 +1,7 @@ package redis import ( + "context" "crypto/tls" "net" "time" @@ -18,7 +19,7 @@ type Options struct { // Dialer creates new network connection and has priority over // Network and Addr options. - Dialer func() (net.Conn, error) + Dialer func(ctx context.Context, network, addr string) (net.Conn, error) // Optional password. Must match the password specified in the // requirepass server configuration option.