eth,core: changed NewTicker to Tick

This commit is contained in:
obscuren
2015-05-01 16:30:02 +02:00
parent b298928c49
commit c6ad3aec05
2 changed files with 6 additions and 6 deletions

View File

@ -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