mirror of
https://github.com/fluencelabs/go-libp2p-kad-dht
synced 2025-05-29 06:01:20 +00:00
use old 'Next' method for now
This commit is contained in:
parent
b17e206c81
commit
2020aa5d10
@ -118,12 +118,7 @@ func loadProvSet(dstore ds.Datastore, k *cid.Cid) (*providerSet, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
out := newProviderSet()
|
out := newProviderSet()
|
||||||
//for e := range res.Next() {
|
for e := range res.Next() {
|
||||||
for {
|
|
||||||
e, ok := res.NextSync()
|
|
||||||
if !ok {
|
|
||||||
break
|
|
||||||
}
|
|
||||||
if e.Error != nil {
|
if e.Error != nil {
|
||||||
log.Error("got an error: ", e.Error)
|
log.Error("got an error: ", e.Error)
|
||||||
continue
|
continue
|
||||||
|
Loading…
x
Reference in New Issue
Block a user