1
0
mirror of https://github.com/actix/examples synced 2025-06-26 09:17:41 +02: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

View File

@ -9,7 +9,7 @@ async fn index(_req: HttpRequest) -> &'static str {
async fn main() -> std::io::Result<()> {
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(|| {
App::new()