Removed useless goroutines from sync cmd, backFillAllBlocks always called with go func()

This commit is contained in:
Maxim Krasilnikov 2018-06-21 18:05:49 +03:00
parent b1df139d29
commit 51f2a23b74

View File

@ -49,9 +49,7 @@ func init() {
}
func backFillAllBlocks(blockchain core.Blockchain, blockRepository datastore.BlockRepository, missingBlocksPopulated chan int, startingBlockNumber int64) {
go func() {
missingBlocksPopulated <- history.PopulateMissingBlocks(blockchain, blockRepository, startingBlockNumber)
}()
missingBlocksPopulated <- history.PopulateMissingBlocks(blockchain, blockRepository, startingBlockNumber)
}
func sync() {