Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
nothinux committed May 20, 2019
1 parent 07d7b63 commit 5bb6b89
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@ client := toxiproxy.NewClient("localhost:8474")

You can then create a new proxy using the client:
```go
proxy := client.CreateProxy("redis", "localhost:26379", "localhost:6379")
proxy, err := client.CreateProxy("redis", "localhost:26379", "localhost:6379")
if err != nil {
panic(err)
}
```

For large amounts of proxies, they can also be created using a configuration file:
Expand Down

0 comments on commit 5bb6b89

Please sign in to comment.