Skip to content

Commit

Permalink
Merge pull request #2618 from HenrikJannsen/small-fixes
Browse files Browse the repository at this point in the history
cleanups
  • Loading branch information
HenrikJannsen authored Aug 11, 2024
2 parents 34c4ad5 + 7be06c0 commit 47537ff
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ public CompletableFuture<Boolean> initialize() {
MemoryReport.logReport();
log.info("Completed republishAuthorizedBondedRoles");
log.info("Start request and publish DaoData");
requestDaoData().join();
requestDaoData().join(); // takes about 6 minutes for 500 items
MemoryReport.logReport();
log.info("Completed request and publish DaoData");
periodicRequestDoaDataScheduler = Scheduler.run(() -> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ public void startInitialPeerExchange() {
minSuccessReachedPin.unbind();
}
minSuccessReachedPin = initialPeerExchangeAttempt.getMinSuccessReached().get().addObserver(minSuccessReached -> {
log.error("minSuccessReachedPin {}", minSuccessReachedPin);
if (minSuccessReached) {
minSuccessReachedPin.unbind();
minSuccessReachedPin = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ protected void verifyMessage(BisqEasyTakeOfferRequest message) {
Optional<UserProfile> mediator = serviceProvider.getSupportService().getMediationRequestService()
.selectMediator(takersOffer.getMakersUserProfileId(), trade.getTaker().getNetworkId().getId());
checkArgument(mediator.equals(takersContract.getMediator()), "Mediators do not match. " +
"mediator=" + mediator + ", takersContract.getMediator()=" +
takersContract.getMediator());
"\nmediator=" + mediator +
"\ntakersContract.getMediator()=" + takersContract.getMediator());

log.info("Selected mediator for trade {}: {}", trade.getShortId(), mediator.map(UserProfile::getUserName).orElse("N/A"));

Expand All @@ -139,7 +139,8 @@ protected void verifyMessage(BisqEasyTakeOfferRequest message) {
}
}

private void commitToModel(ContractSignatureData takersContractSignatureData, ContractSignatureData makersContractSignatureData) {
private void commitToModel(ContractSignatureData takersContractSignatureData,
ContractSignatureData makersContractSignatureData) {
trade.getTaker().getContractSignatureData().set(takersContractSignatureData);
trade.getMaker().getContractSignatureData().set(makersContractSignatureData);
}
Expand Down

0 comments on commit 47537ff

Please sign in to comment.