This is an automated email from the ASF dual-hosted git repository.

Aias00 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shenyu.git


The following commit(s) were added to refs/heads/master by this push:
     new 5926970c22 fix: remove magic num in InstanceCheckSrevice (#6421)
5926970c22 is described below

commit 5926970c22ccf72e96d37c9196dd76141ffaf9ff
Author: hengyuss <[email protected]>
AuthorDate: Thu Jul 16 16:25:40 2026 +0800

    fix: remove magic num in InstanceCheckSrevice (#6421)
    
    Co-authored-by: aias00 <[email protected]>
---
 .../java/org/apache/shenyu/admin/service/impl/InstanceCheckService.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/shenyu-admin/src/main/java/org/apache/shenyu/admin/service/impl/InstanceCheckService.java
 
b/shenyu-admin/src/main/java/org/apache/shenyu/admin/service/impl/InstanceCheckService.java
index e5654cfbb2..de6835b14d 100644
--- 
a/shenyu-admin/src/main/java/org/apache/shenyu/admin/service/impl/InstanceCheckService.java
+++ 
b/shenyu-admin/src/main/java/org/apache/shenyu/admin/service/impl/InstanceCheckService.java
@@ -123,7 +123,7 @@ public class InstanceCheckService {
         } else {
             InstanceInfoVO instanceInfoVO = new InstanceInfoVO();
             instanceInfoVO.setInstanceIp(instanceBeatInfoDTO.getInstanceIp());
-            instanceInfoVO.setInstanceState(1);
+            
instanceInfoVO.setInstanceState(InstanceStatusEnum.ONLINE.getCode());
             
instanceInfoVO.setInstanceInfo(instanceBeatInfoDTO.getInstanceInfo());
             
instanceInfoVO.setInstanceType(instanceBeatInfoDTO.getInstanceType());
             instanceInfoVO.setLastHeartBeatTime(System.currentTimeMillis());

Reply via email to