Send heartbeat every 20s and not 10s

This commit is contained in:
Yonas Habteab 2020-07-09 13:16:48 +02:00
parent e9b8fc234b
commit cf5ec5e341
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ void JsonRpcConnection::HandleAndWriteHeartbeats(boost::asio::yield_context yc)
boost::system::error_code ec;
for (;;) {
m_HeartbeatTimer.expires_from_now(boost::posix_time::seconds(10));
m_HeartbeatTimer.expires_from_now(boost::posix_time::seconds(20));
m_HeartbeatTimer.async_wait(yc[ec]);
if (m_ShuttingDown) {