From 7c74e166b0ee14cf040374f522bc399841a11e69 Mon Sep 17 00:00:00 2001 From: Egon Elbre Date: Mon, 7 Aug 2017 14:11:15 +0300 Subject: accounts: fix megacheck warnings (#14903) * accounts: fix megacheck warnings * accounts: don't modify abi in favor of full cleanup --- accounts/usbwallet/ledger_hub.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'accounts/usbwallet/ledger_hub.go') diff --git a/accounts/usbwallet/ledger_hub.go b/accounts/usbwallet/ledger_hub.go index fcbc24c0f..2b0d56097 100644 --- a/accounts/usbwallet/ledger_hub.go +++ b/accounts/usbwallet/ledger_hub.go @@ -197,11 +197,10 @@ func (hub *LedgerHub) Subscribe(sink chan<- accounts.WalletEvent) event.Subscrip // is not running). func (hub *LedgerHub) updater() { for { - // Wait for a USB hotplug event (not supported yet) or a refresh timeout - select { - //case <-hub.changes: // reenable on hutplug implementation - case <-time.After(ledgerRefreshCycle): - } + // TODO: Wait for a USB hotplug event (not supported yet) or a refresh timeout + // <-hub.changes + time.Sleep(ledgerRefreshCycle) + // Run the wallet refresher hub.refreshWallets() -- cgit v1.2.3