diff --git a/common/store.go b/common/store.go index 2d508538..b4797190 100644 --- a/common/store.go +++ b/common/store.go @@ -59,7 +59,7 @@ func StringToBackendType(s string) BackendType { } type Store interface { - // Backend returns the backend type provider of the store. + // BackendType returns the backend type provider of the store. BackendType() BackendType // Verify verifies the given key-value pair. Verify(ctx context.Context, key []byte, value []byte) error diff --git a/metrics/metrics.go b/metrics/metrics.go index a9855e2c..9512d570 100644 --- a/metrics/metrics.go +++ b/metrics/metrics.go @@ -157,7 +157,7 @@ func (m *Metrics) RecordRPCServerRequest(method string) func(status, mode, ver s } } -// RecordSecondaryPut records a secondary put/get operation. +// RecordSecondaryRequest records a secondary put/get operation. func (m *Metrics) RecordSecondaryRequest(bt string, method string) func(status string) { timer := prometheus.NewTimer(m.SecondaryRequestDurationSec.WithLabelValues(bt)) diff --git a/store/generated_key/eigenda/eigenda.go b/store/generated_key/eigenda/eigenda.go index bb535e92..0c357b26 100644 --- a/store/generated_key/eigenda/eigenda.go +++ b/store/generated_key/eigenda/eigenda.go @@ -147,7 +147,7 @@ func (e Store) Put(ctx context.Context, value []byte) ([]byte, error) { return bytes, nil } -// Backend returns the backend type for EigenDA Store +// BackendType returns the backend type for EigenDA Store func (e Store) BackendType() common.BackendType { return common.EigenDABackendType } diff --git a/store/secondary.go b/store/secondary.go index 23a086df..fc38bc07 100644 --- a/store/secondary.go +++ b/store/secondary.go @@ -83,7 +83,7 @@ func (sm *SecondaryManager) FallbackEnabled() bool { return len(sm.fallbacks) > 0 } -// handleRedundantWrites ... writes to both sets of backends (i.e, fallback, cache) +// HandleRedundantWrites ... writes to both sets of backends (i.e, fallback, cache) // and returns an error if NONE of them succeed func (sm *SecondaryManager) HandleRedundantWrites(ctx context.Context, commitment []byte, value []byte) error { sources := sm.caches