fix: expect instead of unwrap on websocket
This commit is contained in:
parent
d06617e367
commit
ddb5c9aea6
1 changed files with 2 additions and 2 deletions
|
|
@ -1,13 +1,13 @@
|
|||
use std::error::Error;
|
||||
|
||||
mod websocket;
|
||||
mod computer;
|
||||
mod notifications;
|
||||
mod websocket;
|
||||
|
||||
fn main() -> Result<(), Box<dyn Error>> {
|
||||
dotenvy::dotenv()?;
|
||||
|
||||
let mut socket = websocket::connect().unwrap();
|
||||
let mut socket = websocket::connect().expect("Could not connect to WebSocket");
|
||||
computer::start_sending(&mut socket);
|
||||
|
||||
Ok(())
|
||||
|
|
|
|||
Loading…
Reference in a new issue