From 95cd890e40c501a2681af3801fe8d9b80c23eb11 Mon Sep 17 00:00:00 2001 From: Vladimir Mihailenco Date: Fri, 30 Jan 2015 15:41:57 +0200 Subject: [PATCH] Fix example. --- example_test.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/example_test.go b/example_test.go index dbc95131..ddcc1bf5 100644 --- a/example_test.go +++ b/example_test.go @@ -29,14 +29,10 @@ func ExampleNewTCPClient() { } func ExampleNewFailoverClient() { - client := redis.NewFailoverClient(&redis.FailoverOptions{ + redis.NewFailoverClient(&redis.FailoverOptions{ MasterName: "master", SentinelAddrs: []string{":26379"}, }) - - pong, err := client.Ping().Result() - fmt.Println(pong, err) - // Output: PONG } func ExampleClient() {