From ff3862640264c267c1d82c31ef3580d431565b0f Mon Sep 17 00:00:00 2001 From: Samuel Laferriere Date: Sun, 8 Dec 2024 23:20:00 -0500 Subject: [PATCH] docs(client): make example in README compile --- client/README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/client/README.md b/client/README.md index 52c2b7d4..ffbc0c99 100644 --- a/client/README.md +++ b/client/README.md @@ -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 @@ -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") }