Skip to content

Commit

Permalink
fix: run returns void result
Browse files Browse the repository at this point in the history
  • Loading branch information
tejmagar committed Jun 11, 2024
1 parent 7f25e95 commit ddfa1d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/server/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ impl Server {
}

/// Runs server in blocking thread.
pub async fn run(&mut self) -> std::io::Result<&mut Self> {
pub async fn run(&mut self) -> std::io::Result<()> {
let session_manager: Arc<SessionManager>;
if let Some(custom_session_manager) = &self.session_manager {
session_manager = custom_session_manager.clone();
Expand Down Expand Up @@ -369,7 +369,7 @@ impl Server {
.await?;
}

Ok(self)
Ok(())
}

async fn wait_shutdown(shutdown_lock: ShutdownLock) {
Expand Down

0 comments on commit ddfa1d8

Please sign in to comment.