Skip to content

Commit dca6ad9

Browse files
restyled-commitsyunhanw-google
authored andcommitted
Restyled by clang-format
1 parent 8133855 commit dca6ad9

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

src/messaging/ReliableMessageProtocolConfig.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,8 @@ System::Clock::Timeout GetRetransmissionTimeout(System::Clock::Timeout activeInt
135135
System::Clock::Timestamp timeout(0);
136136
for (uint8_t i = 0; i < CHIP_CONFIG_RMP_DEFAULT_MAX_RETRANS + 1; i++)
137137
{
138-
auto baseInterval = ((timeSinceLastActivity + timeout) < activityThreshold) ? activeInterval : min(activeInterval, idleInterval);
138+
auto baseInterval =
139+
((timeSinceLastActivity + timeout) < activityThreshold) ? activeInterval : min(activeInterval, idleInterval);
139140
timeout += Messaging::ReliableMessageMgr::GetBackoff(baseInterval, i, /* computeMaxPossible */ true);
140141
}
141142

src/transport/SecureSession.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,8 @@ class SecureSession : public Session, public ReferenceCounted<SecureSession, Sec
265265

266266
System::Clock::Timestamp GetMRPBaseTimeout() const override
267267
{
268-
return IsPeerActive() ? GetRemoteMRPConfig().mActiveRetransTimeout : min(GetRemoteMRPConfig().mActiveRetransTimeout, GetRemoteMRPConfig().mIdleRetransTimeout);
268+
return IsPeerActive() ? GetRemoteMRPConfig().mActiveRetransTimeout
269+
: min(GetRemoteMRPConfig().mActiveRetransTimeout, GetRemoteMRPConfig().mIdleRetransTimeout);
269270
}
270271

271272
CryptoContext & GetCryptoContext() { return mCryptoContext; }

src/transport/UnauthenticatedSessionTable.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,8 @@ class UnauthenticatedSession : public Session, public ReferenceCounted<Unauthent
155155

156156
System::Clock::Timestamp GetMRPBaseTimeout() const override
157157
{
158-
return IsPeerActive() ? GetRemoteMRPConfig().mActiveRetransTimeout : min(GetRemoteMRPConfig().mActiveRetransTimeout, GetRemoteMRPConfig().mIdleRetransTimeout);
158+
return IsPeerActive() ? GetRemoteMRPConfig().mActiveRetransTimeout
159+
: min(GetRemoteMRPConfig().mActiveRetransTimeout, GetRemoteMRPConfig().mIdleRetransTimeout);
159160
}
160161

161162
void SetRemoteSessionParameters(const SessionParameters & sessionParams) { mRemoteSessionParams = sessionParams; }

0 commit comments

Comments
 (0)