| 39 | } |
| 40 | |
| 41 | void RouterDelegate::SetTimeout(uint32_t timeoutSec) |
| 42 | { |
| 43 | if (timeoutSec == kNoTimeout) |
| 44 | return; |
| 45 | |
| 46 | std::chrono::steady_clock::duration const timeout = std::chrono::seconds(timeoutSec); |
| 47 | m_cancellable.SetDeadline(std::chrono::steady_clock::now() + timeout); |
| 48 | } |
| 49 | } // namespace routing |
no test coverage detected