- Removing warning

! Increasing wait time on client mock script to avoid firing too early
This commit is contained in:
shockrah
2021-05-01 19:16:18 -07:00
parent 11d1652467
commit 7c8bc8b4fc
2 changed files with 5 additions and 3 deletions

View File

@@ -110,7 +110,7 @@ pub async fn delete_channel(id: u64) {
#[derive(Serialize)]
struct DeletedChannel {
id: u64
};
}
let channel = DeletedChannel { id };
if let Err(e) = notify("delete-channel", channel).await {
eprintln!("[API-RTC] Unable to connect to RTC server: {}", e);
@@ -130,7 +130,7 @@ pub async fn update_nickname<'s>(id: u64, name: &'s str) {
struct NewNick<'n> {
id: u64,
name: &'n str
};
}
let user = NewNick { id, name };
if let Err(e) = notify("update-nick", user).await {