Skip to content

Commit a23fe01

Browse files
committed
feat: 注册中心中非临时实例不进行过期清理;#276
1 parent 34fe30a commit a23fe01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/naming/model.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ impl Instance {
4444

4545
pub fn is_enable_timeout(&self) -> bool {
4646
//grpc 不走过期检查
47-
!self.from_grpc && !self.is_from_cluster()
47+
self.ephemeral && !self.from_grpc && !self.is_from_cluster()
4848
}
4949

5050
pub fn generate_key(&mut self) {

0 commit comments

Comments
 (0)