Skip to content

Commit 65f70cf

Browse files
committed
fix
1 parent 9a2b76c commit 65f70cf

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

endpoint/src/redisservice/config.rs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,13 @@ impl RedisNamespace {
7878
}
7979

8080
// 解密密码
81-
match ns.decrypt_password() {
82-
Ok(password) => ns.basic.password = password,
83-
Err(e) => {
84-
log::warn!("failed to decrypt password, e:{}", e);
85-
return None;
81+
if !ns.basic.password.is_empty() {
82+
match ns.decrypt_password() {
83+
Ok(password) => ns.basic.password = password,
84+
Err(e) => {
85+
log::warn!("failed to decrypt password, e:{}", e);
86+
return None;
87+
}
8688
}
8789
}
8890

stream/src/checker.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ impl<P, Req> BackendChecker<P, Req> {
119119
timeout += 1;
120120
}
121121
Error::ChanReadClosed => {
122-
debug_assert!(!self.finish.get(), "channel closed but not finish");
122+
debug_assert!(self.finish.get(), "channel closed but not finish");
123123
}
124124
Error::TxBufFull => {
125125
let mut buf_full = path_addr.num("buf_full");

0 commit comments

Comments
 (0)