Skip to content

Commit

Permalink
Fix example.
Browse files Browse the repository at this point in the history
  • Loading branch information
vmihailenco committed Jan 30, 2015
1 parent 22e4776 commit 95cd890
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 <nil>
}

func ExampleClient() {
Expand Down

0 comments on commit 95cd890

Please sign in to comment.