Skip to content

Commit ebf8921

Browse files
committed
Fix typo in DelayPolicy.withMinDelat(duration) - by error delegates to withMaxDelay
1 parent b321615 commit ebf8921

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/net/tascalate/concurrent/DelayPolicy.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ default DelayPolicy<T> withMinDelay(Duration minDelay) {
104104
}
105105

106106
default DelayPolicy<T> withMinDelay(long minDelay, TimeUnit timeUnit) {
107-
return withMaxDelay(Timeouts.toDuration(minDelay, timeUnit));
107+
return withMinDelay(Timeouts.toDuration(minDelay, timeUnit));
108108
}
109109

110110
default DelayPolicy<T> withMinDelay(long minDelayMillis) {

0 commit comments

Comments
 (0)