diff --git a/today-retry/src/main/java/cn/taketoday/retry/policy/CircuitBreakerRetryPolicy.java b/today-retry/src/main/java/cn/taketoday/retry/policy/CircuitBreakerRetryPolicy.java index d61d040b51..7dc4acadd5 100644 --- a/today-retry/src/main/java/cn/taketoday/retry/policy/CircuitBreakerRetryPolicy.java +++ b/today-retry/src/main/java/cn/taketoday/retry/policy/CircuitBreakerRetryPolicy.java @@ -1,8 +1,5 @@ /* - * Original Author -> Harry Yang (taketoday@foxmail.com) https://taketoday.cn - * Copyright © Harry Yang & 2017 - 2023 All Rights Reserved. - * - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER + * Copyright 2017 - 2023 the original author or authors. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -31,6 +28,7 @@ /** * @author Dave Syer + * @author Harry Yang * @since 4.0 */ @SuppressWarnings("serial") @@ -122,7 +120,7 @@ public RetryContext open(RetryContext parent) { resetTimeout = this.resetTimeoutSupplier.get(); } long openTimeout = this.openTimeout; - if (this.resetTimeoutSupplier != null) { + if (this.openTimeoutSupplier != null) { openTimeout = this.openTimeoutSupplier.get(); } return new CircuitBreakerRetryContext(parent, this.delegate, resetTimeout, openTimeout);