From a6a3856abfc4a1b7a3e8b9a1fdbd7fd6d25973e0 Mon Sep 17 00:00:00 2001 From: Sander van Harmelen Date: Thu, 14 Nov 2024 13:10:02 +0100 Subject: [PATCH] Make the ignore clock skew parameter follow the generic pattern All other parameters take a value, while this one did not. Especially when we (maybe) want to set the default to `true` one day, this would become an issue (next to it not being consistent now). Normally such a change would not be worth causing a backwards incompatibility issue, but since the rewritten client isn't released yet it feels like this is the best possible time to correct this. --- lib/src/client/builder.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/client/builder.rs b/lib/src/client/builder.rs index e802f15c1..1b3557926 100644 --- a/lib/src/client/builder.rs +++ b/lib/src/client/builder.rs @@ -260,8 +260,8 @@ impl ClientBuilder { /// Sets whether the client should ignore clock skew so the client can make a successful /// connection to the server, even when the client and server clocks are out of sync. - pub fn ignore_clock_skew(mut self) -> Self { - self.config.performance.ignore_clock_skew = true; + pub fn ignore_clock_skew(mut self, ignore_clock_skew: bool) -> Self { + self.config.performance.ignore_clock_skew = ignore_clock_skew; self }