|
@@ -9,7 +9,6 @@ extern crate rocket_contrib;
|
|
|
extern crate lazy_static;
|
|
|
extern crate serde_json;
|
|
|
|
|
|
-use chrono::{DateTime, Duration, Local, Utc};
|
|
|
// use serde_json;
|
|
|
use std::collections::HashMap;
|
|
|
use std::fs::File;
|
|
@@ -22,16 +21,11 @@ use std::{thread, time};
|
|
|
mod query;
|
|
|
use query::*;
|
|
|
mod server;
|
|
|
-use server::run;
|
|
|
const DBFILE: &str = "accounts.json";
|
|
|
|
|
|
|
|
|
-
|
|
|
-
|
|
|
lazy_static! {
|
|
|
- // static ref ACCOUNTS: Mutex<HashMap<String, Account>> = Mutex::new(HashMap::new());
|
|
|
static ref ACCOUNTS: Mutex<HashMap<String, Account>> = Mutex::new(HashMap::new());
|
|
|
-
|
|
|
}
|
|
|
|
|
|
|
|
@@ -57,10 +51,6 @@ fn daemon() {
|
|
|
println!(">>> Done.");
|
|
|
let pause = time::Duration::from_secs(30);
|
|
|
thread::sleep(pause);
|
|
|
- // break;
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
|
|
|
}
|
|
|
}
|