Skip to content

Commit

Permalink
update rstun
Browse files Browse the repository at this point in the history
  • Loading branch information
neevek committed Apr 6, 2024
1 parent a9dfe9a commit d55db0f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
14 changes: 11 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/quic/quic_server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ impl QuicServer {
QuicServer { server }
}

pub async fn bind(&mut self) -> Result<SocketAddr> {
self.server.bind().await
pub fn bind(&mut self) -> Result<SocketAddr> {
self.server.bind()
}

pub async fn serve(&self) {
Expand Down
2 changes: 1 addition & 1 deletion src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ impl Server {
common_cfg: self.common_quic_config.clone(),
};
let mut quic_server = QuicServer::new(quic_server_config);
quic_server.bind().await?;
quic_server.bind()?;
quic_server.serve().await;
}

Expand Down

0 comments on commit d55db0f

Please sign in to comment.