stores: log 404 in remote.GenerateSingleVanillaProof
This commit is contained in:
parent
0b3144f566
commit
69e8516d1f
5
extern/sector-storage/stores/remote.go
vendored
5
extern/sector-storage/stores/remote.go
vendored
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user