Need to ignore in progress cache while disabled (#3109)

This commit is contained in:
Preston Van Loon
2019-07-30 01:07:18 -04:00
committed by GitHub
parent 63cf0f07a2
commit 5f4cdd6095

View File

@@ -123,7 +123,9 @@ func (c *AttestationCache) MarkInProgress(req *pb.AttestationRequest) error {
if c.inProgress[s] {
return ErrAlreadyInProgress
}
c.inProgress[s] = true
if featureconfig.FeatureConfig().EnableAttestationCache {
c.inProgress[s] = true
}
return nil
}