From c2d56e79bf0fe26c47470276188e5ce5da333b93 Mon Sep 17 00:00:00 2001 From: Mr-Leshiy Date: Tue, 28 Nov 2023 16:17:37 +0200 Subject: [PATCH] fix docs --- catalyst-gateway/bin/src/service/mod.rs | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/catalyst-gateway/bin/src/service/mod.rs b/catalyst-gateway/bin/src/service/mod.rs index 238b5b4666c..7c432365f73 100644 --- a/catalyst-gateway/bin/src/service/mod.rs +++ b/catalyst-gateway/bin/src/service/mod.rs @@ -25,15 +25,13 @@ pub(crate) enum Error { Io(#[from] std::io::Error), } -/// # Run all web services. +/// # Run Catalyst Gateway Service. /// -/// This will currently run both a Axum based Web API, and a Poem based API. -/// This is only for migration until all endpoints are provided by the Poem service. +/// Runs the Poem based API. /// /// ## Arguments /// /// `service_addr`: &`SocketAddr` - the address to listen on -/// `metrics_addr`: &`Option` - the address to listen on for metrics /// `state`: `Arc` - the state /// /// ## Errors @@ -42,10 +40,5 @@ pub(crate) enum Error { /// `Error::EventDbError` - cannot connect to the event db /// `Error::IoError` - An IO error has occurred. pub(crate) async fn run(service_addr: &SocketAddr, state: Arc) -> Result<(), Error> { - // Create service addresses to be used during poem migration. - // Service address is same as official address but +1 to the port. - let mut legacy_service = *service_addr; - legacy_service.set_port(legacy_service.port() + 1); - poem_service::run(service_addr, state).await }