diff --git a/zino-core/src/application/mod.rs b/zino-core/src/application/mod.rs index 0cc94256..9a161e75 100644 --- a/zino-core/src/application/mod.rs +++ b/zino-core/src/application/mod.rs @@ -221,7 +221,7 @@ pub trait Application { /// Returns the application name. #[inline] fn name() -> &'static str { - APP_NMAE.as_ref() + APP_NAME.as_ref() } /// Returns the application version. @@ -372,7 +372,7 @@ pub(crate) fn join_path(dir: &Path, path: &str) -> PathBuf { } /// App name. -pub(crate) static APP_NMAE: LazyLock<&'static str> = LazyLock::new(|| { +pub(crate) static APP_NAME: LazyLock<&'static str> = LazyLock::new(|| { SHARED_APP_STATE .config() .get_str("name") diff --git a/zino-core/src/auth/access_key.rs b/zino-core/src/auth/access_key.rs index 2ef7b1cc..27a1b7cc 100644 --- a/zino-core/src/auth/access_key.rs +++ b/zino-core/src/auth/access_key.rs @@ -192,7 +192,7 @@ static SECRET_KEY: LazyLock<[u8; 64]> = LazyLock::new(|| { .unwrap_or_else(|| { let secret = config.get_str("secret").unwrap_or_else(|| { tracing::warn!("auto-generated `secret` is used for deriving a secret key"); - crate::application::APP_NMAE.as_ref() + crate::application::APP_NAME.as_ref() }); crypto::digest(secret.as_bytes()) }); diff --git a/zino-core/src/auth/jwt_claims.rs b/zino-core/src/auth/jwt_claims.rs index 0c8f81ce..15c0cd3f 100644 --- a/zino-core/src/auth/jwt_claims.rs +++ b/zino-core/src/auth/jwt_claims.rs @@ -233,7 +233,7 @@ static SECRET_KEY: LazyLock = LazyLock::new(|| { .unwrap_or_else(|| { let secret = config.get_str("secret").unwrap_or_else(|| { tracing::warn!("auto-generated `secret` is used for deriving a secret key"); - crate::application::APP_NMAE.as_ref() + crate::application::APP_NAME.as_ref() }); crypto::digest(secret.as_bytes()) });