From f06b859c82a2fcc678f0b027b786266e5ba57342 Mon Sep 17 00:00:00 2001 From: Craig Raw Date: Tue, 28 Feb 2023 14:37:46 +0200 Subject: [PATCH] extend request timeout for paynym api --- build.gradle | 4 ++-- .../java/com/sparrowwallet/sparrow/paynym/PayNymService.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build.gradle b/build.gradle index f0079737..45480ad7 100644 --- a/build.gradle +++ b/build.gradle @@ -103,7 +103,7 @@ dependencies { implementation('org.slf4j:jul-to-slf4j:1.7.30') { exclude group: 'org.slf4j' } - implementation('com.sparrowwallet.nightjar:nightjar:0.2.34') + implementation('com.sparrowwallet.nightjar:nightjar:0.2.35') implementation('io.reactivex.rxjava2:rxjava:2.2.15') implementation('io.reactivex.rxjava2:rxjavafx:2.2.2') implementation('org.apache.commons:commons-lang3:3.7') @@ -498,7 +498,7 @@ extraJavaModuleInfo { exports('co.nstant.in.cbor.model') exports('co.nstant.in.cbor.builder') } - module('nightjar-0.2.34.jar', 'com.sparrowwallet.nightjar', '0.2.34') { + module('nightjar-0.2.35.jar', 'com.sparrowwallet.nightjar', '0.2.35') { requires('com.google.common') requires('net.sourceforge.streamsupport') requires('org.slf4j') diff --git a/src/main/java/com/sparrowwallet/sparrow/paynym/PayNymService.java b/src/main/java/com/sparrowwallet/sparrow/paynym/PayNymService.java index 536c2a63..004145e4 100644 --- a/src/main/java/com/sparrowwallet/sparrow/paynym/PayNymService.java +++ b/src/main/java/com/sparrowwallet/sparrow/paynym/PayNymService.java @@ -33,7 +33,7 @@ public class PayNymService { private final JavaHttpClientService httpClientService; public PayNymService(HostAndPort torProxy) { - this.httpClientService = new JavaHttpClientService(torProxy); + this.httpClientService = new JavaHttpClientService(torProxy, 120000); } public Observable> createPayNym(Wallet wallet) {