2
0

Name project "Puddle"

pool was inconvenient as a name because the obvious name for a variable
is pool. But that caused a name collision with the package.
This commit is contained in:
Jack Christensen
2018-12-22 21:18:27 -06:00
parent 4f3c383c87
commit 45336ddb3f
3 changed files with 21 additions and 22 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
package pool
package puddle
import (
"context"
@@ -39,7 +39,7 @@ type Pool struct {
closeRes CloseFunc
}
func New(create CreateFunc, closeRes CloseFunc) *Pool {
func NewPool(create CreateFunc, closeRes CloseFunc) *Pool {
return &Pool{
cond: sync.NewCond(new(sync.Mutex)),
allResources: make(map[interface{}]*resourceWrapper),