Use a for loop for getting diffs off the payload channel

This commit is contained in:
Elizabeth Engelman
2019-09-25 16:32:30 -05:00
parent 7cbad1d89f
commit 7cd66b8775
@@ -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 {