mirror of
https://git.ngram.ca/OpenJam/rc-servers
synced 2026-08-23 23:08:52 +00:00
Reduce artificial delay before entering a match
This commit is contained in:
@@ -276,7 +276,7 @@ impl QueueHandler {
|
||||
}
|
||||
|
||||
async fn send_events_to_player(enter_event: std::sync::Arc<crate::events::battle_enter::BattleEnter>, sender: polariton_server::events::EventEmitter) {
|
||||
const WAIT_BEFORE_ENTER: std::time::Duration = std::time::Duration::from_secs(1);
|
||||
const WAIT_BEFORE_ENTER: std::time::Duration = std::time::Duration::from_millis(10);
|
||||
if sender.emit(crate::events::battle_found::BattleFound) {
|
||||
tokio::time::sleep(WAIT_BEFORE_ENTER).await;
|
||||
sender.emit(enter_event.as_ref());
|
||||
|
||||
Reference in New Issue
Block a user