mirror of
https://github.com/signalapp/Signal-Server
synced 2026-04-22 01:18:35 +01:00
FaultTolerantHttpClient: used managed ScheduledExecutorService for retries
This commit is contained in:
committed by
Jon Chambers
parent
8e48ac4ede
commit
b852d6681d
@@ -311,6 +311,7 @@ public final class Operations {
|
||||
return FaultTolerantHttpClient.newBuilder()
|
||||
.withName("integration-test")
|
||||
.withExecutor(Executors.newFixedThreadPool(16))
|
||||
.withRetryExecutor(Executors.newSingleThreadScheduledExecutor())
|
||||
.withCircuitBreaker(new CircuitBreakerConfiguration())
|
||||
.withTrustedServerCertificates(CONFIG.rootCert())
|
||||
.build();
|
||||
|
||||
Reference in New Issue
Block a user