diff --git a/doc/overview.edoc b/doc/overview.edoc index 5d18abdf..2164097b 100644 --- a/doc/overview.edoc +++ b/doc/overview.edoc @@ -335,12 +335,12 @@ you to maintain a group of connections. ``` PoolName = mypool, -Options = [{timeout, 150000}, {pool_size, 100}], -{ok, Pid} = hackney_pool:start_pool(PoolName, Options), +Options = [{timeout, 150000}, {max_connections, 100}], +ok = hackney_pool:start_pool(PoolName, Options), ''' `timeout' is the time we keep the connection alive in the pool, -`pool_size' is the number of connections maintained in the pool. Each +`max_connections' is the number of connections maintained in the pool. Each connection in a pool is monitored and closed connections are removed automatically.