From 3a900d687dff7698c7950ef834efa4744e9b4469 Mon Sep 17 00:00:00 2001 From: Damian Krolik Date: Sat, 27 Apr 2024 17:18:44 +0200 Subject: [PATCH] Code review --- src/messaging/ReliableMessageMgr.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/messaging/ReliableMessageMgr.cpp b/src/messaging/ReliableMessageMgr.cpp index ac029fb1aae7a0..3827fd096d5072 100644 --- a/src/messaging/ReliableMessageMgr.cpp +++ b/src/messaging/ReliableMessageMgr.cpp @@ -465,7 +465,7 @@ CHIP_ERROR ReliableMessageMgr::MapSendError(CHIP_ERROR error, uint16_t exchangeI void ReliableMessageMgr::CalculateNextRetransTime(RetransTableEntry & entry) { - System::Clock::Timestamp baseTimeout = System::Clock::Milliseconds64(0); + System::Clock::Timeout baseTimeout = System::Clock::Timeout(0); // Check if we have received at least one application-level message if (entry.ec->HasReceivedAtLeastOneMessage()) @@ -480,8 +480,8 @@ void ReliableMessageMgr::CalculateNextRetransTime(RetransTableEntry & entry) baseTimeout = entry.ec->GetSessionHandle()->GetMRPBaseTimeout(); } - System::Clock::Timestamp backoff = ReliableMessageMgr::GetBackoff(baseTimeout, entry.sendCount); - entry.nextRetransTime = System::SystemClock().GetMonotonicTimestamp() + backoff; + System::Clock::Timeout backoff = ReliableMessageMgr::GetBackoff(baseTimeout, entry.sendCount); + entry.nextRetransTime = System::SystemClock().GetMonotonicTimestamp() + backoff; } #if CHIP_CONFIG_TEST