stores: log 404 in remote.GenerateSingleVanillaProof

This commit is contained in:
Łukasz Magiera 2022-03-25 15:37:35 -04:00
parent 0b3144f566
commit 69e8516d1f

View File

@ -813,8 +813,9 @@ func (r *Remote) GenerateSingleVanillaProof(ctx context.Context, minerID abi.Act
return nil, xerrors.Errorf("do request: %w", err) return nil, xerrors.Errorf("do request: %w", err)
} }
if resp.StatusCode != 200 { if resp.StatusCode != http.StatusOK {
if resp.StatusCode == 404 { if resp.StatusCode == http.StatusNotFound {
log.Debugw("reading vanilla proof from remote not-found response", "url", url, "store", info.ID)
continue continue
} }
body, err := ioutil.ReadAll(resp.Body) body, err := ioutil.ReadAll(resp.Body)