mirror of
https://gitea.invidious.io/iv-org/shard-crystal-db.git
synced 2024-08-15 00:53:32 +00:00
release references to resources in pool.
This commit is contained in:
parent
598aca50af
commit
dbf7c94ef4
1 changed files with 2 additions and 0 deletions
|
@ -18,6 +18,8 @@ module DB
|
||||||
# close all resources in the pool
|
# close all resources in the pool
|
||||||
def close : Nil
|
def close : Nil
|
||||||
@total.each &.close
|
@total.each &.close
|
||||||
|
@total.clear
|
||||||
|
@available.clear
|
||||||
end
|
end
|
||||||
|
|
||||||
def checkout : T
|
def checkout : T
|
||||||
|
|
Loading…
Reference in a new issue