Browse Source

improve documentation of ActiveCount method

Mat Byczkowski 8 years ago
parent
commit
95d11dba2d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      redis/pool.go

+ 1 - 1
redis/pool.go

@@ -181,7 +181,7 @@ func (p *Pool) Get() Conn {
 	return &pooledConnection{p: p, c: c}
 	return &pooledConnection{p: p, c: c}
 }
 }
 
 
-// ActiveCount returns the number of active connections in the pool.
+// ActiveCount returns the number of connections in the pool. The count includes idle connections and connections in use.
 func (p *Pool) ActiveCount() int {
 func (p *Pool) ActiveCount() int {
 	p.mu.Lock()
 	p.mu.Lock()
 	active := p.active
 	active := p.active