We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 28f6f42 commit 9633f21Copy full SHA for 9633f21
1 file changed
tee-worker/litentry/core/challenge-code-cache/src/lib.rs
@@ -52,7 +52,7 @@ impl ChallengeCodeCache {
52
pub fn insert_challenge_code(&self, identity: Identity, code: ChallengeCode) {
53
if self.enable.read().map_or(false, |r| *r) {
54
if let Ok(mut codes_lock) = self.codes.write() {
55
- log::debug!("cahce challenge_code: {:?}, code:{:?}", identity, code);
+ log::debug!("cache challenge_code: {:?}, code:{:?}", identity, code);
56
codes_lock.insert(identity.flat(), code.to_vec());
57
}
58
@@ -65,7 +65,7 @@ impl ChallengeCodeCache {
65
66
67
68
- pub fn is_enable(&self) -> bool {
+ pub fn is_enabled(&self) -> bool {
69
self.enable.read().map_or(false, |r| *r)
70
71
0 commit comments