Minor refactorings

This commit is contained in:
Stephen Seo 2022-04-01 20:04:40 +09:00
parent e4f5f48bae
commit 2a7a961c9c
2 changed files with 1 additions and 2 deletions

View file

@ -2,7 +2,6 @@ use crate::ai::{get_ai_choice, AIDifficulty};
use crate::constants::{ use crate::constants::{
COLS, GAME_CLEANUP_TIMEOUT, PLAYER_CLEANUP_TIMEOUT, PLAYER_COUNT_LIMIT, ROWS, TURN_SECONDS, COLS, GAME_CLEANUP_TIMEOUT, PLAYER_CLEANUP_TIMEOUT, PLAYER_COUNT_LIMIT, ROWS, TURN_SECONDS,
}; };
use crate::game_logic::check_win_draw;
use crate::state::{board_from_string, new_string_board, string_from_board, BoardState, Turn}; use crate::state::{board_from_string, new_string_board, string_from_board, BoardState, Turn};
use std::sync::mpsc::{Receiver, RecvTimeoutError, SyncSender}; use std::sync::mpsc::{Receiver, RecvTimeoutError, SyncSender};

View file

@ -18,7 +18,7 @@ use warp::{Filter, Rejection};
#[tokio::main] #[tokio::main]
async fn main() { async fn main() {
let (db_tx, db_rx) = sync_channel::<DBHandlerRequest>(32); let (db_tx, db_rx) = sync_channel::<DBHandlerRequest>(128);
let db_tx_clone = db_tx.clone(); let db_tx_clone = db_tx.clone();
let (shutdown_tx, shutdown_rx) = oneshot::channel::<()>(); let (shutdown_tx, shutdown_rx) = oneshot::channel::<()>();