Merge pull request #6973 from AlphaWallet/remove-default-refresh-fetching

Remove default refresh interval (=0) for fetching. It's not used and too easy to fallback to
pull/6974/head
Hwee-Boon Yar 1 year ago committed by GitHub
commit 6e6401400f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      modules/AlphaWalletFoundation/AlphaWalletFoundation/Tokens/TokensAutodetector/TransactedTokensAutodetector.swift
  2. 4
      modules/AlphaWalletFoundation/AlphaWalletFoundation/Transactions/EtherscanSingleChainTransactionProvider.swift

@ -107,13 +107,7 @@ extension TransactedTokensAutodetector {
subject.eraseToAnyPublisher()
}
init(session: WalletSession,
blockchainExplorer: BlockchainExplorer,
storage: PaginationStorage,
tokenType: Eip20TokenType,
interval: TimeInterval = 0,
stateProvider: SchedulerStateProvider) {
init(session: WalletSession, blockchainExplorer: BlockchainExplorer, storage: PaginationStorage, tokenType: Eip20TokenType, interval: TimeInterval, stateProvider: SchedulerStateProvider) {
self.stateProvider = stateProvider
self.interval = interval
self.tokenType = tokenType

@ -308,7 +308,7 @@ extension EtherscanSingleChainTransactionProvider {
subject.eraseToAnyPublisher()
}
init(session: WalletSession, blockchainExplorer: BlockchainExplorer, transferType: TransactionFetchType, interval: TimeInterval = 0, stateProvider: SchedulerStateProvider) {
init(session: WalletSession, blockchainExplorer: BlockchainExplorer, transferType: TransactionFetchType, interval: TimeInterval, stateProvider: SchedulerStateProvider) {
self.stateProvider = stateProvider
self.transferType = transferType
self.interval = interval
@ -415,7 +415,7 @@ extension EtherscanSingleChainTransactionProvider {
subject.eraseToAnyPublisher()
}
init(session: WalletSession, blockchainExplorer: BlockchainExplorer, transactionDataStore: TransactionDataStore, interval: TimeInterval = 0, stateProvider: SchedulerStateProvider) {
init(session: WalletSession, blockchainExplorer: BlockchainExplorer, transactionDataStore: TransactionDataStore, interval: TimeInterval, stateProvider: SchedulerStateProvider) {
self.stateProvider = stateProvider
self.transactionDataStore = transactionDataStore
self.interval = interval

Loading…
Cancel
Save