mirror of
https://github.com/ipfs/kubo.git
synced 2025-06-29 17:36:38 +08:00
Merge pull request #2928 from ipfs/feature/fix-error-providers
routing: Use correct error variable
This commit is contained in:
@ -123,7 +123,7 @@ func loadProvSet(dstore ds.Datastore, k key.Key) (*providerSet, error) {
|
|||||||
out := newProviderSet()
|
out := newProviderSet()
|
||||||
for e := range res.Next() {
|
for e := range res.Next() {
|
||||||
if e.Error != nil {
|
if e.Error != nil {
|
||||||
log.Error("got an error: ", err)
|
log.Error("got an error: ", e.Error)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
parts := strings.Split(e.Key, "/")
|
parts := strings.Split(e.Key, "/")
|
||||||
|
Reference in New Issue
Block a user