1
0
mirror of https://github.com/actix/examples synced 2024-11-23 14:31:07 +01:00

Correct startup log message for unix-server

I was momentarily confused about where the example was actually listening.
This commit is contained in:
Matt Palmer 2024-04-10 11:57:05 +10:00 committed by GitHub
parent 390dd6be07
commit 324c0d4f53
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -9,7 +9,7 @@ async fn index(_req: HttpRequest) -> &'static str {
async fn main() -> std::io::Result<()> { async fn main() -> std::io::Result<()> {
env_logger::init_from_env(env_logger::Env::new().default_filter_or("info")); env_logger::init_from_env(env_logger::Env::new().default_filter_or("info"));
log::info!("starting HTTP server at http://localhost:8080"); log::info!("starting HTTP server at unix:/tmp/actix-uds.socket");
HttpServer::new(|| { HttpServer::new(|| {
App::new() App::new()