Skip to content

Commit

Permalink
Update H2ClientHeartbeatHandler.java
Browse files Browse the repository at this point in the history
support java8
  • Loading branch information
ctlove0523 authored Nov 30, 2024
1 parent f0a8f96 commit 9163cee
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ public void run() {
log.debug("begin send PINT frame to {} with content {}", ctx.channel().remoteAddress(), defaultHttp2PingFrame.content());
}
ctx.writeAndFlush(defaultHttp2PingFrame);
ctx.executor().schedule(new HeartbeatCheckTask(ctx, pintContent), pingTimeout.toSeconds(), TimeUnit.SECONDS);
ctx.executor().schedule(new HeartbeatCheckTask(ctx, pintContent), pingTimeout.getSeconds(), TimeUnit.SECONDS);
}
}, 5, pingTime.toSeconds(), TimeUnit.SECONDS);
}, 5, pingTime.getSeconds(), TimeUnit.SECONDS);

ctx.fireChannelActive();
}
Expand Down

0 comments on commit 9163cee

Please sign in to comment.