Remove an unused method from RetryConfiguration

This commit is contained in:
Jon Chambers authored and Jon Chambers committed 2025-08-27 11:20:11 -04:00
1 parent 1cc933b6bc
commit 32cf12e9af
1 file changed
+2 -6
@@ -36,13 +36,9 @@ public class RetryConfiguration {
this.waitDuration = waitDuration;
}
public RetryConfig toRetryConfig() {
return toRetryConfigBuilder().build();
}
public <T> RetryConfig.Builder<T> toRetryConfigBuilder() {
return RetryConfig.<T>custom()
.maxAttempts(getMaxAttempts())
.waitDuration(Duration.ofMillis(getWaitDuration()));
.maxAttempts(getMaxAttempts())
.waitDuration(Duration.ofMillis(getWaitDuration()));
}
}