threefoldtech / 0-fs

A new filesystem for zero-os that leverage on unionfs and a thin fuse layer to get the files on demand
Apache License 2.0
0 stars 1 forks source link

fix connection management in redis pool #27

Closed zaibon closed 4 years ago

zaibon commented 4 years ago

The pool configuration requires to have the MaxIdle connection to a number bigger then 1 to allow to reuse connection. Without it a new connection is always created.

This commit allow to have a total of 10 connection in the pool and keep 2 of them open.

codecov-commenter commented 4 years ago

Codecov Report

Merging #27 into development will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff              @@
##           development      #27   +/-   ##
============================================
  Coverage        34.10%   34.10%           
============================================
  Files               10       10           
  Lines              478      478           
============================================
  Hits               163      163           
  Misses             286      286           
  Partials            29       29           
Impacted Files Coverage Δ
storage/router/pool.go 3.22% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update a482f17...2061cfa. Read the comment docs.