changeset 563:63b1f80e40d5

write-a-lot: Close database explicitly
author Lewin Bormann <lbo@spheniscida.de>
date Fri, 01 Jul 2022 21:02:27 -0700
parents 37763170982d
children 648cd1834556
files examples/write-a-lot/src/main.rs
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/examples/write-a-lot/src/main.rs	Fri Jul 01 21:01:43 2022 -0700
+++ b/examples/write-a-lot/src/main.rs	Fri Jul 01 21:02:27 2022 -0700
@@ -35,4 +35,6 @@
     let mut db = DB::open("test1", opt).unwrap();
 
     fill_db(&mut db, 32768).unwrap();
+
+    db.close().unwrap();
 }