From 0e2268d6fe530a72f826d5eb83abd93f95856493 Mon Sep 17 00:00:00 2001 From: chimp1984 Date: Sun, 30 Aug 2020 19:37:43 -0500 Subject: [PATCH] Refactor: - Rename XmrTransferProofRequest to XmrTxProofRequest --- .../trade/autoconf/xmr/XmrTransferProofService.java | 6 +++--- ...ransferProofRequest.java => XmrTxProofRequest.java} | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) rename core/src/main/java/bisq/core/trade/autoconf/xmr/{XmrTransferProofRequest.java => XmrTxProofRequest.java} (95%) diff --git a/core/src/main/java/bisq/core/trade/autoconf/xmr/XmrTransferProofService.java b/core/src/main/java/bisq/core/trade/autoconf/xmr/XmrTransferProofService.java index 31bd5e5224..90069faac0 100644 --- a/core/src/main/java/bisq/core/trade/autoconf/xmr/XmrTransferProofService.java +++ b/core/src/main/java/bisq/core/trade/autoconf/xmr/XmrTransferProofService.java @@ -34,7 +34,7 @@ import lombok.extern.slf4j.Slf4j; */ @Slf4j class XmrTransferProofService { - private final Map map = new HashMap<>(); + private final Map map = new HashMap<>(); private final Socks5ProxyProvider socks5ProxyProvider; @Inject @@ -52,7 +52,7 @@ class XmrTransferProofService { } log.info("requesting tx proof with uid {}", uid); - XmrTransferProofRequest requester = new XmrTransferProofRequest( + XmrTxProofRequest requester = new XmrTxProofRequest( socks5ProxyProvider, xmrTxProofModel, result -> { @@ -71,7 +71,7 @@ class XmrTransferProofService { void terminateRequest(XmrTxProofModel xmrTxProofModel) { String uid = xmrTxProofModel.getUID(); - XmrTransferProofRequest requester = map.getOrDefault(uid, null); + XmrTxProofRequest requester = map.getOrDefault(uid, null); if (requester != null) { log.info("Terminating API request for request with uid {}", uid); requester.stop(); diff --git a/core/src/main/java/bisq/core/trade/autoconf/xmr/XmrTransferProofRequest.java b/core/src/main/java/bisq/core/trade/autoconf/xmr/XmrTxProofRequest.java similarity index 95% rename from core/src/main/java/bisq/core/trade/autoconf/xmr/XmrTransferProofRequest.java rename to core/src/main/java/bisq/core/trade/autoconf/xmr/XmrTxProofRequest.java index 3865a306bb..c656ea521e 100644 --- a/core/src/main/java/bisq/core/trade/autoconf/xmr/XmrTransferProofRequest.java +++ b/core/src/main/java/bisq/core/trade/autoconf/xmr/XmrTxProofRequest.java @@ -37,7 +37,7 @@ import lombok.extern.slf4j.Slf4j; import org.jetbrains.annotations.NotNull; @Slf4j -class XmrTransferProofRequest { +class XmrTxProofRequest { // these settings are not likely to change and therefore not put into Config private static final long REPEAT_REQUEST_PERIOD = TimeUnit.SECONDS.toMillis(90); private static final long MAX_REQUEST_PERIOD = TimeUnit.HOURS.toMillis(12); @@ -57,10 +57,10 @@ class XmrTransferProofRequest { // Constructor /////////////////////////////////////////////////////////////////////////////////////////// - XmrTransferProofRequest(Socks5ProxyProvider socks5ProxyProvider, - XmrTxProofModel xmrTxProofModel, - Consumer resultHandler, - FaultHandler faultHandler) { + XmrTxProofRequest(Socks5ProxyProvider socks5ProxyProvider, + XmrTxProofModel xmrTxProofModel, + Consumer resultHandler, + FaultHandler faultHandler) { this.httpClient = new XmrTxProofHttpClient(socks5ProxyProvider); this.httpClient.setBaseUrl("http://" + xmrTxProofModel.getServiceAddress()); if (xmrTxProofModel.getServiceAddress().matches("^192.*|^localhost.*")) {