This commit is contained in:
Reskorey 2021-04-23 16:10:51 +08:00
parent 7738886936
commit 58bee65bcb

View File

@ -604,7 +604,7 @@ func (a *API) clientRetrieve(ctx context.Context, order api.RetrievalOrder, ref
finish(xerrors.Errorf("cannot make retrieval deal for null total"))
return
}
if order.Size == 0 {
finish(xerrors.Errorf("cannot make retrieval deal for zero bytes"))
return