Use a for loop for getting diffs off the payload channel
This commit is contained in:
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 {
|
||||
|
Loading…
Reference in New Issue
Block a user