From dbb6aff09d472e2cf047bf0d8803e25dad241c1f Mon Sep 17 00:00:00 2001 From: NicolasCantu Date: Wed, 12 Nov 2025 09:56:17 +0100 Subject: [PATCH] Replace the port and fix the starting log --- src/main.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/main.rs b/src/main.rs index 236fd23..f40a5a2 100644 --- a/src/main.rs +++ b/src/main.rs @@ -5,7 +5,7 @@ use sdk_storage::{StorageService, create_app}; use tide::log; const STORAGE_DIR: &str = "./storage"; -const PORT: u16 = 8080; +const PORT: u16 = 8081; const DEFAULT_TTL: u64 = 86400; @@ -38,10 +38,8 @@ async fn main() -> tide::Result<()> { } }); - let mut app = create_app(no_ttl_permanent, STORAGE_DIR); + let app = create_app(no_ttl_permanent, STORAGE_DIR); + println!("Server starting on http://0.0.0.0:{}", PORT); app.listen(format!("0.0.0.0:{}", PORT)).await?; - - println!("Server running at http://0.0.0.0:{}", PORT); - Ok(()) }