Skip to content

Commit

Permalink
fix: Application 'nmae' has been corrected
Browse files Browse the repository at this point in the history
  • Loading branch information
Demolemon11 committed Sep 30, 2024
1 parent f3bec5b commit a5b6299
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions zino-core/src/application/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion zino-core/src/auth/access_key.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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())
});
Expand Down
2 changes: 1 addition & 1 deletion zino-core/src/auth/jwt_claims.rs
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ static SECRET_KEY: LazyLock<JwtHmacKey> = 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())
});
Expand Down

0 comments on commit a5b6299

Please sign in to comment.