mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2025-03-29 11:11:48 +01:00
increase whirlpool http client timeout
This commit is contained in:
parent
521bbdd70e
commit
3f72a84afe
@ -58,6 +58,7 @@ public class Whirlpool {
|
||||
public static final List<Network> WHIRLPOOL_NETWORKS = List.of(Network.MAINNET, Network.TESTNET);
|
||||
public static final int DEFAULT_MIXTO_MIN_MIXES = 3;
|
||||
public static final int DEFAULT_MIXTO_RANDOM_FACTOR = 4;
|
||||
protected static final int TIMEOUT_MS = 60000;
|
||||
|
||||
private final WhirlpoolServer whirlpoolServer;
|
||||
private final JavaHttpClientService httpClientService;
|
||||
@ -84,7 +85,7 @@ public class Whirlpool {
|
||||
|
||||
public Whirlpool(Network network, HostAndPort torProxy) {
|
||||
this.whirlpoolServer = WhirlpoolServer.valueOf(network.getName().toUpperCase(Locale.ROOT));
|
||||
this.httpClientService = new JavaHttpClientService(torProxy);
|
||||
this.httpClientService = new JavaHttpClientService(torProxy, TIMEOUT_MS);
|
||||
this.stompClientService = new JavaStompClientService(httpClientService);
|
||||
this.torClientService = new SparrowTorClientService(this);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user