Skip to content

Commit 0ee2748

Browse files
committed
refactor: organize imports
1 parent 9339717 commit 0ee2748

1 file changed

Lines changed: 7 additions & 8 deletions

File tree

‎server/src/main.rs‎

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,8 @@ use std::collections::HashMap;
22
use std::error::Error;
33
use std::time::Duration;
44

5-
use connection::{
6-
Client, Clients, Connection, Connections, UnauthedConnection, UnauthedConnections,
7-
};
85
use futures::stream::FuturesUnordered;
96
use futures::StreamExt;
10-
use room::{RoomActor, RoomHandle};
117
use tokio::net::TcpListener;
128
use tokio::sync::{mpsc, oneshot};
139

@@ -16,17 +12,20 @@ use protocol::{Message, Notification, Request, Response, RoomListing, RoomOption
1612
mod connection;
1713
mod room;
1814

15+
use connection::{
16+
Client, Clients, Connection, Connections, UnauthedConnection, UnauthedConnections,
17+
};
18+
use room::{RoomActor, RoomHandle};
19+
1920
// TODO: maybe move to protocol eventually and validate
2021
type Id = String;
2122

2223
#[tokio::main(flavor = "multi_thread")]
23-
async fn main() -> Result<(), Box<dyn Error>> {
24+
async fn main() {
2425
let bind_addr = "0.0.0.0:5119".to_string();
2526

26-
let mut main_actor = MainActor::new(&bind_addr).await?;
27+
let mut main_actor = MainActor::new(&bind_addr).await.unwrap();
2728
main_actor.run().await;
28-
29-
Ok(())
3029
}
3130

3231
#[derive(Debug)]

0 commit comments

Comments
 (0)