Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't register timelimiter to a registry #14

Open
akhildaphara opened this issue Aug 17, 2022 · 0 comments
Open

Can't register timelimiter to a registry #14

akhildaphara opened this issue Aug 17, 2022 · 0 comments

Comments

@akhildaphara
Copy link

(timelimiter/defregistry my-timelimiter-registry {:timeout-millis 3000})`
(timelimiter/deftimelimiter registered-timelimiter {:registry my-timelimiter-registry})

throws an error:
CompilerException clojure.lang.ExceptionInfo: Invalid input:
{:path [0], :pred #{:cancel-running-future? :timeout-millis}, :val :registry, :via [:timelimiter/time-limiter-config], :in [:registry 0]} #:clojure.spec.alpha{:problems ({:path [0], :pred #{:cancel-running-future? :timeout-millis}, :val :registry, :via [:timelimiter/time-limiter-config], :in [:registry 0]}), :spec :timelimiter/time-limiter-config, :value {:registry #object[io.github.resilience4j.timelimiter.internal.InMemoryTimeLimiterRegistry 0x5a5f8380 "io.github.resilience4j.timelimiter.internal.InMemoryTimeLimiterRegistry@5a5f8380"]}}, compiling:(form-init3937641170203513409.clj:1:1)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant