Skip to content

Commit

Permalink
docs: make it clear that same addresses can be used in the Pool (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
alovak authored May 28, 2024
1 parent 5a6fc9f commit fe82225
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,12 +158,13 @@ if mti != "0810" {

## Connection `Pool`

Sometimes you want to establish connections to multiple servers and re-create
Sometimes you want to establish multiple connections and re-create
them when such connections are closed due to a network errors. Connection `Pool`
is really helpful for such use cases.

To use `Pool` first, you need to create factory function that knows how to create
connections and list of adresses you want to establish connection with.
To use Pool, first, you need to create a factory function that knows how to
create connections and a list of addresses you want to establish connections
with. You can establish connections with different or the same addresses.

```go
// Factory method that will build connection
Expand Down

0 comments on commit fe82225

Please sign in to comment.