Commit ce68333c authored by Kevin Atkinson's avatar Kevin Atkinson

Use res.NextSync() instead of res.Next() to avoid using a channel.

parent a72dd86f
......@@ -118,7 +118,11 @@ func loadProvSet(dstore ds.Datastore, k *cid.Cid) (*providerSet, error) {
}
out := newProviderSet()
for e := range res.Next() {
for {
e, ok := res.NextSync()
if !ok {
break
}
if e.Error != nil {
log.Error("got an error: ", e.Error)
continue
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment