feat(tournaments): broadcast tournament type to all observers #17
@@ -545,6 +545,8 @@ impl Server {
|
|||||||
*tournament_guard = Some(Arc::new(RwLock::new(tourney)));
|
*tournament_guard = Some(Arc::new(RwLock::new(tourney)));
|
||||||
|
|
||||||
let _ = crate::send(&tx, "TOURNAMENT:START:ACK");
|
let _ = crate::send(&tx, "TOURNAMENT:START:ACK");
|
||||||
|
|
||||||
|
self.broadcast_message_all_observers(&format!("TOURNAMENT:START:{}", tournament_type)).await;
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user