spring-cloud / spring-cloud-circuitbreaker

Spring Cloud Circuit Breaker API and Implementations
Apache License 2.0
329 stars 110 forks source link

Time limitter registry not pick default configuration. #116

Closed cbezmen closed 3 years ago

cbezmen commented 3 years ago

Describe the bug I think there is a bug on resilience4j.timelimiter with default configuration.

resilience4j.timelimiter:
  configs:
    default:
      timeoutDuration: 5s

Default configuration not picked up by bug line

The code should changed to:

TimeLimiter timeLimiter = timeLimiterRegistry.timeLimiter(id, tags);

resilience4j automatically set default configuration if specific client not found.

cbezmen commented 3 years ago

It was fixed in spring cloud version 2020.0.3