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:
parent
390dd6be07
commit
324c0d4f53
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user