fix(redis): simplify refreshRedisHeartbeat logic and ensure proper error handling
Build & Test (NowChessSystems) TeamCity build failed
Build & Test (NowChessSystems) TeamCity build failed
This commit is contained in:
+1
-1
@@ -173,7 +173,7 @@ class InstanceHeartbeatService:
|
|||||||
}
|
}
|
||||||
|
|
||||||
private def refreshRedisHeartbeat(): Unit =
|
private def refreshRedisHeartbeat(): Unit =
|
||||||
if !redisHeartbeatPending.compareAndSet(false, true) then return
|
if redisHeartbeatPending.compareAndSet(false, true) then
|
||||||
try
|
try
|
||||||
val key = s"$redisPrefix:instances:$instanceId"
|
val key = s"$redisPrefix:instances:$instanceId"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user