From 1a43cf12cc5ef747180f073d61b271c2e363ddf1 Mon Sep 17 00:00:00 2001 From: rasul Date: Fri, 3 Apr 2020 18:21:19 -0500 Subject: [PATCH] a few comments --- src/database/db.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/database/db.rs b/src/database/db.rs index 240274b..7bc6fe9 100644 --- a/src/database/db.rs +++ b/src/database/db.rs @@ -13,8 +13,10 @@ pub struct Db(pub Connection); impl Db { /// Open the database pub fn open>(path: P) -> RudeResult { + // open the database let connection = try_log!(Connection::open(path), "Unable to open database"); + // make sure the connected_players table is cleared out { let mut statement = try_log!( connection.prepare("delete from connected_players;"),