Log and ignore errors on eager pool creation

This commit is contained in:
Soam Vasani
2016-11-04 23:05:29 -07:00
parent f3eba4b825
commit 5cfe4b7c1d
+4 -1
View File
@@ -108,7 +108,10 @@ func (gpm *GenericPoolManager) eagerPoolCreator() {
// to keep these eagerly created pools smaller than the ones created when there are
// actual function calls.
for _, env := range envs {
gpm.GetPool(&env)
_, err := gpm.GetPool(&env)
if err != nil {
log.Printf("eager-create pool failed: %v", err)
}
}
}
}