Replace the port and fix the starting log

This commit is contained in:
NicolasCantu 2025-11-12 09:56:17 +01:00
parent ecf48cec7e
commit dbb6aff09d

View File

@ -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(())
}