Fix example.

This commit is contained in:
Vladimir Mihailenco 2015-01-30 15:41:57 +02:00
parent 22e4776c1e
commit 95cd890e40
1 changed files with 1 additions and 5 deletions

View File

@ -29,14 +29,10 @@ func ExampleNewTCPClient() {
} }
func ExampleNewFailoverClient() { func ExampleNewFailoverClient() {
client := redis.NewFailoverClient(&redis.FailoverOptions{ redis.NewFailoverClient(&redis.FailoverOptions{
MasterName: "master", MasterName: "master",
SentinelAddrs: []string{":26379"}, SentinelAddrs: []string{":26379"},
}) })
pong, err := client.Ping().Result()
fmt.Println(pong, err)
// Output: PONG <nil>
} }
func ExampleClient() { func ExampleClient() {