impl drop for storage

This commit is contained in:
manapointer 2022-12-25 18:10:42 -08:00
parent 2fc0a3c08f
commit 57b848da3e

View file

@ -171,13 +171,13 @@ where
} }
} }
impl<DB> Drop for Shared<DB> impl<DB> Drop for Storage<DB>
where where
DB: HasJars, DB: HasJars,
{ {
fn drop(&mut self) { fn drop(&mut self) {
drop(self.jars.take()); drop(self.shared.jars.take());
self.cvar.notify_all(); self.shared.cvar.notify_all();
} }
} }