Skip to content

Commit

Permalink
Update BeatReactor.java (alibaba#3299)
Browse files Browse the repository at this point in the history
update `asInt()` to `asLong()`
  • Loading branch information
jiangcaijun authored Jul 13, 2020
1 parent ee3b16b commit eca82bf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ public void run() {
long nextTime = beatInfo.getPeriod();
try {
JsonNode result = serverProxy.sendBeat(beatInfo, BeatReactor.this.lightBeatEnabled);
long interval = result.get("clientBeatInterval").asInt();
long interval = result.get("clientBeatInterval").asLong();
boolean lightBeatEnabled = false;
if (result.has(CommonParams.LIGHT_BEAT_ENABLED)) {
lightBeatEnabled = result.get(CommonParams.LIGHT_BEAT_ENABLED).asBoolean();
Expand Down

0 comments on commit eca82bf

Please sign in to comment.