From 7e11ea2d30189e5caf9700dff510e9e07c6e890a Mon Sep 17 00:00:00 2001 From: Victor Boivie Date: Fri, 22 Apr 2022 12:27:40 +0200 Subject: [PATCH] dcsctp: Correct safety tag for MaxRetransmits By a copy-paste accident, it used the same as TimeMs. Bug: None Change-Id: Ic290cd256b1b89f0dc0893582252c3248a1ee28a Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/259861 Commit-Queue: Victor Boivie Auto-Submit: Victor Boivie Reviewed-by: Florent Castelli Commit-Queue: Florent Castelli Cr-Commit-Position: refs/heads/main@{#36617} --- net/dcsctp/public/types.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/net/dcsctp/public/types.h b/net/dcsctp/public/types.h index 8faec08ad3..caa03bb96f 100644 --- a/net/dcsctp/public/types.h +++ b/net/dcsctp/public/types.h @@ -107,10 +107,11 @@ constexpr inline DurationMs operator-(TimeMs lhs, TimeMs rhs) { // The maximum number of times the socket should attempt to retransmit a // message which fails the first time in unreliable mode. -class MaxRetransmits : public webrtc::StrongAlias { +class MaxRetransmits + : public webrtc::StrongAlias { public: constexpr explicit MaxRetransmits(const UnderlyingType& v) - : webrtc::StrongAlias(v) {} + : webrtc::StrongAlias(v) {} // There should be no limit - the message should be sent reliably. static constexpr MaxRetransmits NoLimit() {