浏览代码

Correct Pool.Wait documentation

Kyle Brandt 10 年之前
父节点
当前提交
d253d95d0f
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      redis/pool.go

+ 2 - 2
redis/pool.go

@@ -116,7 +116,7 @@ type Pool struct {
 	// the timeout to a value less than the server's timeout.
 	IdleTimeout time.Duration
 
-	// If Wait is true and the pool is at the MaxIdle limit, then Get() waits
+	// If Wait is true and the pool is at the MaxActive limit, then Get() waits
 	// for a connection to be returned to the pool before returning.
 	Wait bool
 
@@ -135,7 +135,7 @@ type idleConn struct {
 	t time.Time
 }
 
-// NewPool creates a new pool. 
+// NewPool creates a new pool.
 //
 // Deprecated: Initialize the Pool directory as shown in the example.
 func NewPool(newFn func() (Conn, error), maxIdle int) *Pool {