2
0

Remove unnecessary wrapping func

This commit is contained in:
Jack Christensen
2018-12-25 19:27:33 -06:00
parent 4ef5d16aa8
commit 590f7e07cb
+1 -3
View File
@@ -307,7 +307,5 @@ func (p *Pool) destroyBorrowedResource(res interface{}) {
delete(p.allResources, rw.value)
// close the resource in the background
go func() {
p.closeRes(res)
}()
go p.closeRes(res)
}