Commit ea225c31 authored by Yang Chi's avatar Yang Chi Committed by Facebook Github Bot

HHWheelTimer::Callback getTimeRemaining function is const

Summary: it doesn't change any state

Reviewed By: siyengar

Differential Revision: D14296359

fbshipit-source-id: 0bb8acd1a55f2b6ed431adcd54b97e76b8f377f6
parent d0494141
...@@ -126,7 +126,7 @@ class HHWheelTimerBase : private folly::AsyncTimeout, ...@@ -126,7 +126,7 @@ class HHWheelTimerBase : private folly::AsyncTimeout,
* timeout is not scheduled or expired. Otherwise, return expiration * timeout is not scheduled or expired. Otherwise, return expiration
* time minus current time. * time minus current time.
*/ */
Duration getTimeRemaining() { Duration getTimeRemaining() const {
return getTimeRemaining(std::chrono::steady_clock::now()); return getTimeRemaining(std::chrono::steady_clock::now());
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment