Fix deserialize error for raft beat
This commit is contained in:
parent
da4cc10e8a
commit
d396a885ea
@ -128,7 +128,7 @@ public class RaftController {
|
||||
String value = URLDecoder.decode(entity, "UTF-8");
|
||||
JsonNode json = JacksonUtils.toObj(value);
|
||||
|
||||
String key = json.get("key").toString();
|
||||
String key = json.get("key").asText();
|
||||
if (KeyBuilder.matchInstanceListKey(key)) {
|
||||
raftConsistencyService.put(key, JacksonUtils.toObj(json.get("value").toString(), Instances.class));
|
||||
return "ok";
|
||||
|
Loading…
Reference in New Issue
Block a user