extend request timeout for paynym api

This commit is contained in:
Craig Raw 2023-02-28 14:37:46 +02:00
parent 80dd59928e
commit f06b859c82
2 changed files with 3 additions and 3 deletions

View file

@ -103,7 +103,7 @@ dependencies {
implementation('org.slf4j:jul-to-slf4j:1.7.30') { implementation('org.slf4j:jul-to-slf4j:1.7.30') {
exclude group: 'org.slf4j' 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:rxjava:2.2.15')
implementation('io.reactivex.rxjava2:rxjavafx:2.2.2') implementation('io.reactivex.rxjava2:rxjavafx:2.2.2')
implementation('org.apache.commons:commons-lang3:3.7') implementation('org.apache.commons:commons-lang3:3.7')
@ -498,7 +498,7 @@ extraJavaModuleInfo {
exports('co.nstant.in.cbor.model') exports('co.nstant.in.cbor.model')
exports('co.nstant.in.cbor.builder') 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('com.google.common')
requires('net.sourceforge.streamsupport') requires('net.sourceforge.streamsupport')
requires('org.slf4j') requires('org.slf4j')

View file

@ -33,7 +33,7 @@ public class PayNymService {
private final JavaHttpClientService httpClientService; private final JavaHttpClientService httpClientService;
public PayNymService(HostAndPort torProxy) { public PayNymService(HostAndPort torProxy) {
this.httpClientService = new JavaHttpClientService(torProxy); this.httpClientService = new JavaHttpClientService(torProxy, 120000);
} }
public Observable<Map<String, Object>> createPayNym(Wallet wallet) { public Observable<Map<String, Object>> createPayNym(Wallet wallet) {