From cca475053050e77d7ce68c5d032b4fdbd64a1582 Mon Sep 17 00:00:00 2001 From: guochao Date: Tue, 27 Feb 2024 11:02:16 +0800 Subject: [PATCH] fix name --- flake.nix | 4 ++-- src/bin/ice-publicip-checker.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/flake.nix b/flake.nix index 8132bab..b1619f0 100644 --- a/flake.nix +++ b/flake.nix @@ -23,7 +23,7 @@ libraries = with pkgs; [ sqlite ] ++ (nixpkgs.lib.optional pkgs.stdenv.isDarwin darwin.apple_sdk.frameworks.Security); in rec { - hello = rustPlatform.buildRustPackage rec { + ice-publicip-checker = rustPlatform.buildRustPackage rec { pname = "ice-publicip-checker"; version = "1.0.0"; @@ -44,7 +44,7 @@ }; }; - default = hello; + default = ice-publicip-checker; }); devShells = foreachSystem (system: diff --git a/src/bin/ice-publicip-checker.rs b/src/bin/ice-publicip-checker.rs index 0c1584f..2211de5 100644 --- a/src/bin/ice-publicip-checker.rs +++ b/src/bin/ice-publicip-checker.rs @@ -40,7 +40,7 @@ async fn main() -> Result<(), Box> { listen_address, listen_port, } => { - let service = hello::web::routes::make_service()?; + let service = crate::web::routes::make_service()?; tracing::info!(listen_address, listen_port, "app is service"); let listener = tokio::net::TcpListener::bind(format!("{listen_address}:{listen_port}")).await?;