Skip to content

Commit

Permalink
Attempt to fix build with boost v1.87.
Browse files Browse the repository at this point in the history
  • Loading branch information
arobenko committed Jan 9, 2025
1 parent c01d7ac commit f639fd3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions client/app/common/AppClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -455,8 +455,7 @@ void AppClient::nextTickProgramInternal(unsigned duration)

unsigned AppClient::cancelNextTickWaitInternal()
{
boost::system::error_code ec;
m_timer.cancel(ec);
m_timer.cancel();
auto now = Clock::now();
auto diff = std::chrono::duration_cast<std::chrono::milliseconds>(now - m_lastWaitProgram).count();
return static_cast<unsigned>(diff);
Expand Down
3 changes: 1 addition & 2 deletions gateway/app/gateway/GatewaySession.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,7 @@ bool GatewaySession::startSession()
m_session->setCancelTickWaitReqCb(
[this]() -> unsigned
{
boost::system::error_code ec;
m_timer.cancel(ec);
m_timer.cancel();
assert(m_tickReqTs != Timestamp());
auto now = TimestampClock::now();
auto elapsed = std::chrono::duration_cast<std::chrono::milliseconds>(now - m_tickReqTs);
Expand Down

0 comments on commit f639fd3

Please sign in to comment.