mirror of
https://github.com/stoatchat/stoatchat.git
synced 2026-07-14 13:36:59 +00:00
Formatted code
This commit is contained in:
@@ -33,7 +33,7 @@ pub enum ClientboundNotification {
|
||||
Error(WebSocketError),
|
||||
Authenticated,
|
||||
Ready {
|
||||
users: Vec<User>
|
||||
users: Vec<User>,
|
||||
},
|
||||
|
||||
/*MessageCreate {
|
||||
|
||||
@@ -97,11 +97,10 @@ async fn accept(stream: TcpStream) {
|
||||
) {
|
||||
send(ClientboundNotification::Authenticated);
|
||||
|
||||
match task::block_on(
|
||||
user.generate_ready_payload()
|
||||
) {
|
||||
match task::block_on(user.generate_ready_payload())
|
||||
{
|
||||
Ok(payload) => {
|
||||
send(payload);
|
||||
send(payload);
|
||||
}
|
||||
Err(_) => {
|
||||
send(ClientboundNotification::Error(
|
||||
|
||||
Reference in New Issue
Block a user