Skip to content

Commit

Permalink
check for empty response in FindBatch
Browse files Browse the repository at this point in the history
  • Loading branch information
gammazero committed Sep 23, 2023
1 parent 8b34d13 commit dd4d4a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion find/client/interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func FindBatch(ctx context.Context, finder Finder, mhs []multihash.Multihash) (*
}
return nil, err
}
if r == nil {
if r == nil || len(r.MultihashResults) == 0 {
// multihash not found
continue
}
Expand Down

0 comments on commit dd4d4a6

Please sign in to comment.