Use a for loop for getting diffs off the payload channel

This commit is contained in:
Elizabeth Engelman 2019-07-22 16:48:18 -05:00
parent 7cbad1d89f
commit 7cd66b8775

View File

@ -41,7 +41,8 @@ func (fetcher *GethRpcStorageFetcher) FetchStorageDiffs(out chan<- utils.Storage
errs <- err
}
for diff := range ethStatediffPayloadChan {
for {
diff := <-ethStatediffPayloadChan
stateDiff := new(statediff.StateDiff)
err = rlp.DecodeBytes(diff.StateDiffRlp, stateDiff)
if err != nil {