Temporarily remove db code

pull/5/head
~erin 2021-07-22 09:41:08 -04:00
parent 3636de139f
commit 588c37af08
Signed by: erin
GPG Key ID: DA70E064A8C70F44
2 changed files with 3 additions and 3 deletions

View File

@ -96,7 +96,7 @@ pub fn write_json(users_list: &Vec<User>) -> Result<()> {
};
Ok(())
}
/*
// test sled funtion
pub fn test_sled() {
let db: sled::Db = sled::open("my_db").unwrap();
@ -104,4 +104,4 @@ pub fn test_sled() {
let value = std::str::from_utf8(&db.get("key").unwrap().unwrap()).unwrap();
info!("database: {:?}", &value);
}
}*/

View File

@ -18,7 +18,7 @@ mod user;
fn main() {
env_logger::init();
file_io::test_sled();
//file_io::test_sled();
info!("Started up rocket");
let cors_fairing = AdHoc::on_response("CORS", |_, res| {
res.set_raw_header("Access-Control-Allow-Origin", "*");