diff --git a/internal/datastore/common/errors.go b/internal/datastore/common/errors.go index 81537bab84..5182fa7a58 100644 --- a/internal/datastore/common/errors.go +++ b/internal/datastore/common/errors.go @@ -118,7 +118,7 @@ func NewCreateRelationshipExistsError(relationship *core.RelationTuple) error { } return CreateRelationshipExistsError{ - fmt.Errorf(msg), + errors.New(msg), relationship, } } diff --git a/internal/datastore/proxy/hedging.go b/internal/datastore/proxy/hedging.go index 4ff8ea9adc..05d5cab594 100644 --- a/internal/datastore/proxy/hedging.go +++ b/internal/datastore/proxy/hedging.go @@ -155,7 +155,7 @@ func newHedgingProxyWithTimeSource( } if maxSampleCount < minMaxRequestsThreshold { - return nil, fmt.Errorf(fmt.Sprintf("maxSampleCount must be >=%d", minMaxRequestsThreshold)) + return nil, fmt.Errorf("maxSampleCount must be >=%d", minMaxRequestsThreshold) } if hedgingQuantile <= 0.0 || hedgingQuantile >= 1.0 {