Removed useless goroutines from sync cmd, backFillAllBlocks always called with go func()
This commit is contained in:
parent
b1df139d29
commit
51f2a23b74
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user