forked from cerc-io/ipld-eth-server
Use a for loop for getting diffs off the payload channel
This commit is contained in:
1 parent
7cbad1d89f
commit
7cd66b8775
1 file changed
+2
-1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user