diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2024-04-05 09:48:44 +0200 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2024-04-05 09:48:44 +0200 |
commit | c6908fefe8f527312ade2e938d724cda754ac2ef (patch) | |
tree | e9e7ab0739fb07ca1a08e9c46d93e4e4f73b14e4 /vespa-feed-client | |
parent | bf5a75b3e771422e5dbe70bdbb7cca34d88da066 (diff) |
Just take a short nap. Rest you can do when it is over.
Diffstat (limited to 'vespa-feed-client')
-rw-r--r-- | vespa-feed-client/src/main/java/ai/vespa/feed/client/impl/HttpRequestStrategy.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vespa-feed-client/src/main/java/ai/vespa/feed/client/impl/HttpRequestStrategy.java b/vespa-feed-client/src/main/java/ai/vespa/feed/client/impl/HttpRequestStrategy.java index a495efd87eb..389ba93ba5e 100644 --- a/vespa-feed-client/src/main/java/ai/vespa/feed/client/impl/HttpRequestStrategy.java +++ b/vespa-feed-client/src/main/java/ai/vespa/feed/client/impl/HttpRequestStrategy.java @@ -92,7 +92,7 @@ class HttpRequestStrategy implements RequestStrategy { while (breaker.state() != OPEN && ! destroyed.get()) { while ( ! isInExcess() && poll() && breaker.state() == CLOSED); // Sleep when circuit is half-open, nap when queue is empty, or we are throttled. - Thread.sleep(breaker.state() == HALF_OPEN ? 1000 : 10); + Thread.sleep(breaker.state() == HALF_OPEN ? 100 : 1); } } catch (Throwable t) { |