Skip to content

Commit

Permalink
docs(client): make example in README compile
Browse files Browse the repository at this point in the history
  • Loading branch information
samlaf authored Dec 9, 2024
1 parent bec7f31 commit ff38626
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ import (
"time"

toxiproxy "github.com/Shopify/toxiproxy/v2/client"
"github.com/garyburd/redigo/redis"
"github.com/gomodule/redigo/redis"
)

var toxiClient *toxiproxy.Client
Expand All @@ -114,6 +114,10 @@ func init() {
if err != nil {
panic(err)
}
proxies, err = toxiClient.Proxies()
if err != nil {
panic(err)
}
// Alternatively, create the proxies manually with
// toxiClient.CreateProxy("redis", "localhost:26379", "localhost:6379")
}
Expand Down

0 comments on commit ff38626

Please sign in to comment.