Temporarily remove db code
parent
3636de139f
commit
588c37af08
|
@ -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);
|
||||
|
||||
}
|
||||
}*/
|
||||
|
|
|
@ -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", "*");
|
||||
|
|
Loading…
Reference in New Issue