Merge pull request #63 from chapsuk/duplicate_gouroutines

Removed useless goroutines from sync cmd
This commit is contained in:
Rob Mulholand 2018-06-21 10:12:49 -05:00 committed by GitHub
commit b2cf8d55d8

View File

@ -49,9 +49,7 @@ func init() {
} }
func backFillAllBlocks(blockchain core.Blockchain, blockRepository datastore.BlockRepository, missingBlocksPopulated chan int, startingBlockNumber int64) { 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() { func sync() {