Skip to content

Commit

Permalink
chore: fix miscellaneous typos in comments (#287)
Browse files Browse the repository at this point in the history
  • Loading branch information
samlaf authored Feb 12, 2025
1 parent 97b71bd commit 49cbcc0
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion common/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion metrics/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down
2 changes: 1 addition & 1 deletion store/generated_key/eigenda/eigenda.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion store/secondary.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 49cbcc0

Please sign in to comment.