Skip to content

Commit 9633f21

Browse files
author
zzz
committed
fix typo
1 parent 28f6f42 commit 9633f21

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • tee-worker/litentry/core/challenge-code-cache/src

tee-worker/litentry/core/challenge-code-cache/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ impl ChallengeCodeCache {
5252
pub fn insert_challenge_code(&self, identity: Identity, code: ChallengeCode) {
5353
if self.enable.read().map_or(false, |r| *r) {
5454
if let Ok(mut codes_lock) = self.codes.write() {
55-
log::debug!("cahce challenge_code: {:?}, code:{:?}", identity, code);
55+
log::debug!("cache challenge_code: {:?}, code:{:?}", identity, code);
5656
codes_lock.insert(identity.flat(), code.to_vec());
5757
}
5858
}
@@ -65,7 +65,7 @@ impl ChallengeCodeCache {
6565
}
6666
}
6767

68-
pub fn is_enable(&self) -> bool {
68+
pub fn is_enabled(&self) -> bool {
6969
self.enable.read().map_or(false, |r| *r)
7070
}
7171

0 commit comments

Comments
 (0)