Skip to content

Commit

Permalink
changes per comments
Browse files Browse the repository at this point in the history
  • Loading branch information
rolyatmax committed Jan 6, 2025
1 parent b2ea25f commit e0b5d6f
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions dynamic-proxy/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,7 @@ pub struct SimpleHttpServer {
graceful_shutdown: Option<GracefulShutdown>,
}

#[must_use] // Otherwise, the tasks we started would be stopped as soon as the graceful shutdown is initiated.
async fn listen_loop<S>(
listener: TcpListener,
service: S,
graceful_shutdown: GracefulShutdown,
) -> ()
async fn listen_loop<S>(listener: TcpListener, service: S, graceful_shutdown: GracefulShutdown)
where
S: Service<Request<Incoming>, Response = Response<SimpleBody>> + Clone + Send + 'static,
S::Future: Send + 'static,
Expand Down Expand Up @@ -73,14 +68,12 @@ where
}
}

#[must_use] // Otherwise, the tasks we started would be stopped as soon as the graceful shutdown is initiated.
async fn listen_loop_tls<S>(
listener: TcpListener,
service: S,
resolver: Arc<dyn ResolvesServerCert>,
graceful_shutdown: GracefulShutdown,
) -> ()
where
) where
S: Service<Request<Incoming>, Response = Response<SimpleBody>> + Clone + Send + 'static,
S::Future: Send + 'static,
S::Error: Into<Box<dyn std::error::Error + Send + Sync>>,
Expand Down

0 comments on commit e0b5d6f

Please sign in to comment.