From dd4d4a6e06a4e5090fef2816c1220e9d99d93023 Mon Sep 17 00:00:00 2001 From: gammazero Date: Fri, 22 Sep 2023 21:30:42 -0700 Subject: [PATCH] check for empty response in FindBatch --- find/client/interface.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/find/client/interface.go b/find/client/interface.go index f237423..dbbaf2d 100644 --- a/find/client/interface.go +++ b/find/client/interface.go @@ -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 }