修复心跳报文BUG
This commit is contained in:
parent
d45fbf3354
commit
7d29d9ba91
@ -34,7 +34,7 @@ public class HeartbeatCommand implements BaseCommand{
|
||||
for (JsonNode linkNode : links) {
|
||||
String linkId = linkNode.get("linkId").asText();
|
||||
boolean online = linkNode.get("online").asBoolean();
|
||||
String key = String.format("link:%d:online", linkId, online);
|
||||
String key = String.format("link:%s:online", linkId);
|
||||
adminRedisTemplate.set(key, online ? 1 : 0);
|
||||
adminRedisTemplate.expire(key, HEARTBEAT_TTL);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user