aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-05-01 22:30:02 +0800
committerobscuren <geffobscura@gmail.com>2015-05-03 19:27:37 +0800
commitc6ad3aec05e1c42c3e4a222d1e8306598d5254f3 (patch)
tree2e0ffcb81a8c4d6bd6fa004e81d4cdf942bb3596 /core
parentb298928c49d1af3dc1165b295fe43fc8d0d6061d (diff)
downloaddexon-c6ad3aec05e1c42c3e4a222d1e8306598d5254f3.tar
dexon-c6ad3aec05e1c42c3e4a222d1e8306598d5254f3.tar.gz
dexon-c6ad3aec05e1c42c3e4a222d1e8306598d5254f3.tar.bz2
dexon-c6ad3aec05e1c42c3e4a222d1e8306598d5254f3.tar.lz
dexon-c6ad3aec05e1c42c3e4a222d1e8306598d5254f3.tar.xz
dexon-c6ad3aec05e1c42c3e4a222d1e8306598d5254f3.tar.zst
dexon-c6ad3aec05e1c42c3e4a222d1e8306598d5254f3.zip
eth,core: changed NewTicker to Tick
Diffstat (limited to 'core')
-rw-r--r--core/chain_manager.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/chain_manager.go b/core/chain_manager.go
index e172c5cdb..4dfa67b8d 100644
--- a/core/chain_manager.go
+++ b/core/chain_manager.go
@@ -669,7 +669,7 @@ func (self *ChainManager) merge(oldBlock, newBlock *types.Block) {
func (self *ChainManager) update() {
events := self.eventMux.Subscribe(queueEvent{})
- futureTimer := time.NewTicker(5 * time.Second)
+ futureTimer := time.Tick(5 * time.Second)
out:
for {
select {
@@ -696,7 +696,7 @@ out:
self.eventMux.Post(event)
}
}
- case <-futureTimer.C:
+ case <-futureTimer:
self.procFutureBlocks()
case <-self.quit:
break out