From d90ca1458568690fcf25ccad3dac438b5e3a0cfd Mon Sep 17 00:00:00 2001 From: Darius Date: Sun, 3 Dec 2023 20:28:54 -0500 Subject: [PATCH] chore: Add minor note to limits_mut --- misc/connection-limits/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/misc/connection-limits/src/lib.rs b/misc/connection-limits/src/lib.rs index 7d8afcaacbd..dbe68a8ad11 100644 --- a/misc/connection-limits/src/lib.rs +++ b/misc/connection-limits/src/lib.rs @@ -81,6 +81,7 @@ impl Behaviour { } /// Returns a mutable reference to [`ConnectionLimits`]. + /// > **Note**: A new limit will not be enforced against existing connections. pub fn limits_mut(&mut self) -> &mut ConnectionLimits { &mut self.limits }