Rename mispelled variable (#13759)

This commit is contained in:
Potuz 2024-03-17 17:47:19 -03:00 committed by GitHub
parent ec8b67cb12
commit 4d18e590ed
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View File

@ -190,15 +190,15 @@ func (bv *ROBlobVerifier) ValidProposerSignature(ctx context.Context) (err error
// First check if there is a cached verification that can be reused.
seen, err := bv.sc.SignatureVerified(sd)
if seen {
blobVerifiationProposerSignatureCache.WithLabelValues("hit-valid").Inc()
blobVerificationProposerSignatureCache.WithLabelValues("hit-valid").Inc()
if err != nil {
log.WithFields(logging.BlobFields(bv.blob)).WithError(err).Debug("reusing failed proposer signature validation from cache")
blobVerifiationProposerSignatureCache.WithLabelValues("hit-invalid").Inc()
blobVerificationProposerSignatureCache.WithLabelValues("hit-invalid").Inc()
return ErrInvalidProposerSignature
}
return nil
}
blobVerifiationProposerSignatureCache.WithLabelValues("miss").Inc()
blobVerificationProposerSignatureCache.WithLabelValues("miss").Inc()
// Retrieve the parent state to fallback to full verification.
parent, err := bv.parentState(ctx)

View File

@ -6,7 +6,7 @@ import (
)
var (
blobVerifiationProposerSignatureCache = promauto.NewCounterVec(
blobVerificationProposerSignatureCache = promauto.NewCounterVec(
prometheus.CounterOpts{
Name: "blob_verification_proposer_signature_cache",
Help: "BlobSidecar proposer signature cache result.",