mirror of https://github.com/status-im/consul.git
Minimize open connections maintained by client
This commit is contained in:
parent
6a1b36bd46
commit
9eb6ab8196
|
@ -59,7 +59,7 @@ func NewClient(config *Config) (*Client, error) {
|
||||||
// Create server
|
// Create server
|
||||||
c := &Client{
|
c := &Client{
|
||||||
config: config,
|
config: config,
|
||||||
connPool: NewPool(5),
|
connPool: NewPool(1),
|
||||||
eventCh: make(chan serf.Event, 256),
|
eventCh: make(chan serf.Event, 256),
|
||||||
logger: logger,
|
logger: logger,
|
||||||
shutdownCh: make(chan struct{}),
|
shutdownCh: make(chan struct{}),
|
||||||
|
|
Loading…
Reference in New Issue