|
|
@ -11,7 +11,7 @@ async fn main() { |
|
|
std::thread::sleep(std::time::Duration::from_secs_f32(0.1)); |
|
|
std::thread::sleep(std::time::Duration::from_secs_f32(0.1)); |
|
|
|
|
|
|
|
|
if i == 69 { |
|
|
if i == 69 { |
|
|
log::info!("69 Nice"); |
|
|
log::info!("69 Nͬ͂ͧi̽̅̽҉̫̕͢ĉ͆̚҉̢͞͏eͫ̑͑"); |
|
|
std::thread::sleep(std::time::Duration::from_secs_f32(0.2)); |
|
|
std::thread::sleep(std::time::Duration::from_secs_f32(0.2)); |
|
|
}else{ |
|
|
}else{ |
|
|
log::info!("{}", i); |
|
|
log::info!("{}", i); |
|
|
@ -21,14 +21,12 @@ async fn main() { |
|
|
let games = games::load_games(); |
|
|
let games = games::load_games(); |
|
|
log::info!("{:?}", games); |
|
|
log::info!("{:?}", games); |
|
|
games[0].run(4); |
|
|
games[0].run(4); |
|
|
// let pool = db::DbPool::new().await;
|
|
|
let pool = db::DbPool::new().await; |
|
|
// let mut conn = pool.acquire().await;
|
|
|
let mut conn = pool.acquire().await; |
|
|
// println!("{}", conn.add_user("Hi").await);
|
|
|
println!("{}", conn.add_user("Hi").await); |
|
|
// println!("{:?}", conn.users().await);
|
|
|
println!("{:?}", conn.users().await); |
|
|
// conn.close().await;
|
|
|
conn.close().await; |
|
|
// grpc::start(pool).await;
|
|
|
grpc::start(pool).await; |
|
|
// crossterm::terminal::disable_raw_mode().unwrap();
|
|
|
|
|
|
// loop {}
|
|
|
|
|
|
|
|
|
|
|
|
close.close(); |
|
|
close.close(); |
|
|
} |
|
|
} |
|
|
|