Remove unnecessary wrapping func
This commit is contained in:
@@ -307,7 +307,5 @@ func (p *Pool) destroyBorrowedResource(res interface{}) {
|
|||||||
delete(p.allResources, rw.value)
|
delete(p.allResources, rw.value)
|
||||||
|
|
||||||
// close the resource in the background
|
// close the resource in the background
|
||||||
go func() {
|
go p.closeRes(res)
|
||||||
p.closeRes(res)
|
|
||||||
}()
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user