Skip to content

Commit

Permalink
Merge pull request #4409 from chimp1984/optimize-AssetService
Browse files Browse the repository at this point in the history
Optimize AssetService
  • Loading branch information
sqrrm authored Aug 22, 2020
2 parents 06cfe39 + 67312a5 commit b512e31
Show file tree
Hide file tree
Showing 5 changed files with 180 additions and 410 deletions.
11 changes: 0 additions & 11 deletions core/src/main/java/bisq/core/app/BisqSetup.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
import bisq.core.btc.wallet.BtcWalletService;
import bisq.core.btc.wallet.WalletsManager;
import bisq.core.dao.DaoSetup;
import bisq.core.dao.governance.asset.AssetService;
import bisq.core.dao.governance.voteresult.VoteResultException;
import bisq.core.dao.governance.voteresult.VoteResultService;
import bisq.core.dao.state.unconfirmed.UnconfirmedBsqChangeOutputListService;
Expand All @@ -58,7 +57,6 @@
import bisq.core.support.traderchat.TraderChatManager;
import bisq.core.trade.TradeManager;
import bisq.core.trade.TradeTxException;
import bisq.core.trade.statistics.AssetTradeActivityCheck;
import bisq.core.trade.statistics.TradeStatisticsManager;
import bisq.core.user.Preferences;
import bisq.core.user.User;
Expand Down Expand Up @@ -183,8 +181,6 @@ default void onRequestWalletPassword() {
private final PriceAlert priceAlert;
private final MarketAlerts marketAlerts;
private final VoteResultService voteResultService;
private final AssetTradeActivityCheck tradeActivityCheck;
private final AssetService assetService;
private final TorSetup torSetup;
private final TradeLimits tradeLimits;
private final CoinFormatter formatter;
Expand Down Expand Up @@ -275,8 +271,6 @@ public BisqSetup(P2PNetworkSetup p2PNetworkSetup,
PriceAlert priceAlert,
MarketAlerts marketAlerts,
VoteResultService voteResultService,
AssetTradeActivityCheck tradeActivityCheck,
AssetService assetService,
TorSetup torSetup,
TradeLimits tradeLimits,
@Named(FormattingUtils.BTC_FORMATTER_KEY) CoinFormatter formatter,
Expand Down Expand Up @@ -322,8 +316,6 @@ public BisqSetup(P2PNetworkSetup p2PNetworkSetup,
this.priceAlert = priceAlert;
this.marketAlerts = marketAlerts;
this.voteResultService = voteResultService;
this.tradeActivityCheck = tradeActivityCheck;
this.assetService = assetService;
this.torSetup = torSetup;
this.tradeLimits = tradeLimits;
this.formatter = formatter;
Expand Down Expand Up @@ -784,9 +776,6 @@ private void initDomainServices() {
}

tradeStatisticsManager.onAllServicesInitialized();
tradeActivityCheck.onAllServicesInitialized();

assetService.onAllServicesInitialized();

accountAgeWitnessService.onAllServicesInitialized();
signedWitnessService.onAllServicesInitialized();
Expand Down
Loading

0 comments on commit b512e31

Please sign in to comment.