Skip to content

Commit

Permalink
Update comments
Browse files Browse the repository at this point in the history
Signed-off-by: Apokalip <simeon@manta.network>
  • Loading branch information
Apokalip committed Aug 18, 2022
1 parent 3ba2a1e commit 2ac489a
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions ui/src-tauri/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,7 @@ fn ui_connected() {
UI_CONNECTED.store(true, Ordering::Relaxed);
}

/// while with a timeout, best used for emitting events and waiting
/// either for a response or other events to stop
/// '$condition' does while true (block resulting in true or false)
/// while with a timeout
/// '$body' while body
/// '$timeout' timeout
/// '$falure' body after if while times out
Expand Down Expand Up @@ -146,10 +144,10 @@ impl Authorizer for User {
break;
}
window
.emit("connect", setup)
.expect("The `connect` command failed to be emitted to the window.");
.emit("connect", setup)
.expect("The `connect` command failed to be emitted to the window.");
},
5000,
5000,
{
panic!("Connection attempt timedout!");
}
Expand Down

0 comments on commit 2ac489a

Please sign in to comment.