aboutsummaryrefslogtreecommitdiffstats
path: root/accounts/usbwallet/ledger_hub.go
diff options
context:
space:
mode:
authorEgon Elbre <egonelbre@gmail.com>2017-08-07 19:11:15 +0800
committerPéter Szilágyi <peterke@gmail.com>2017-08-07 19:11:15 +0800
commit7c74e166b0ee14cf040374f522bc399841a11e69 (patch)
tree5359ee39cc5f8a504cc2c734263a235ba8a6607a /accounts/usbwallet/ledger_hub.go
parentf7848c2aa509ff4ac7c0f84e33bdb66b8fe3e80a (diff)
downloaddexon-7c74e166b0ee14cf040374f522bc399841a11e69.tar
dexon-7c74e166b0ee14cf040374f522bc399841a11e69.tar.gz
dexon-7c74e166b0ee14cf040374f522bc399841a11e69.tar.bz2
dexon-7c74e166b0ee14cf040374f522bc399841a11e69.tar.lz
dexon-7c74e166b0ee14cf040374f522bc399841a11e69.tar.xz
dexon-7c74e166b0ee14cf040374f522bc399841a11e69.tar.zst
dexon-7c74e166b0ee14cf040374f522bc399841a11e69.zip
accounts: fix megacheck warnings (#14903)
* accounts: fix megacheck warnings * accounts: don't modify abi in favor of full cleanup
Diffstat (limited to 'accounts/usbwallet/ledger_hub.go')
-rw-r--r--accounts/usbwallet/ledger_hub.go9
1 files changed, 4 insertions, 5 deletions
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()