diff --git a/src/main/java/io/lettuce/core/metrics/MicrometerOptions.java b/src/main/java/io/lettuce/core/metrics/MicrometerOptions.java index bfdb3bb719..8e0b684a48 100644 --- a/src/main/java/io/lettuce/core/metrics/MicrometerOptions.java +++ b/src/main/java/io/lettuce/core/metrics/MicrometerOptions.java @@ -204,7 +204,7 @@ public Builder maxLatency(Duration maxLatency) { * @return this {@link Builder}. */ public Builder minLatency(Duration minLatency) { - LettuceAssert.notNull(maxLatency, "Max Latency must not be null"); + LettuceAssert.notNull(minLatency, "Min Latency must not be null"); this.minLatency = minLatency; return this; }