Skip to content

Commit 47609fa

Browse files
committed
chore: fix some comments
Signed-off-by: sjtucoder <sjtucoder@icloud.com.>
1 parent 97b71bd commit 47609fa

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

common/store.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ func StringToBackendType(s string) BackendType {
5959
}
6060

6161
type Store interface {
62-
// Backend returns the backend type provider of the store.
62+
// BackendType returns the backend type provider of the store.
6363
BackendType() BackendType
6464
// Verify verifies the given key-value pair.
6565
Verify(ctx context.Context, key []byte, value []byte) error

metrics/metrics.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ func (m *Metrics) RecordRPCServerRequest(method string) func(status, mode, ver s
157157
}
158158
}
159159

160-
// RecordSecondaryPut records a secondary put/get operation.
160+
// RecordSecondaryRequest records a secondary put/get operation.
161161
func (m *Metrics) RecordSecondaryRequest(bt string, method string) func(status string) {
162162
timer := prometheus.NewTimer(m.SecondaryRequestDurationSec.WithLabelValues(bt))
163163

store/generated_key/eigenda/eigenda.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ func (e Store) Put(ctx context.Context, value []byte) ([]byte, error) {
147147
return bytes, nil
148148
}
149149

150-
// Backend returns the backend type for EigenDA Store
150+
// BackendType returns the backend type for EigenDA Store
151151
func (e Store) BackendType() common.BackendType {
152152
return common.EigenDABackendType
153153
}

store/secondary.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ func (sm *SecondaryManager) FallbackEnabled() bool {
8383
return len(sm.fallbacks) > 0
8484
}
8585

86-
// handleRedundantWrites ... writes to both sets of backends (i.e, fallback, cache)
86+
// HandleRedundantWrites ... writes to both sets of backends (i.e, fallback, cache)
8787
// and returns an error if NONE of them succeed
8888
func (sm *SecondaryManager) HandleRedundantWrites(ctx context.Context, commitment []byte, value []byte) error {
8989
sources := sm.caches

0 commit comments

Comments
 (0)