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
+2
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(