changes as per review

This commit is contained in:
aarshkshah1992 2021-06-08 10:09:27 +05:30
parent 212d0fc264
commit 4e9bb16532
2 changed files with 3 additions and 1 deletions

View File

@ -579,7 +579,7 @@ func (r *Remote) Reader(ctx context.Context, s storage.SectorRef, offset, size a
if path != "" {
// if we have the unsealed file locally, return a reader that can be used to read the contents of the
// unsealed piece.
log.Infof("Read local %s (+%d,%d)", path, offset, size)
log.Debugf("Check local %s (+%d,%d)", path, offset, size)
ssize, err := s.ProofType.SectorSize()
if err != nil {
return nil, err

View File

@ -581,6 +581,8 @@ func ConfigStorageMiner(c interface{}) Option {
if pricingConfig.External.Path == "" {
return Error(xerrors.New("retrieval pricing policy has been to set to external but external script path is empty"))
}
} else if pricingConfig.Strategy != config.DefaultRetrievalPricing {
return Error(xerrors.New("retrieval pricing policy must be either default or external"))
}
return Options(