Skip to content

Commit bbc28d0

Browse files
authored
chore: fix some struct field names (#5041)
1 parent 5ec231b commit bbc28d0

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

pkg/api/bzz.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ func (s *Service) bzzUploadHandler(w http.ResponseWriter, r *http.Request) {
142142
s.fileUploadHandler(ctx, logger, span, ow, r, putter, headers.Encrypt, tag, headers.RLevel, headers.Act, headers.HistoryAddress)
143143
}
144144

145-
// fileUploadResponse is returned when an HTTP request to upload a file is successful
145+
// bzzUploadResponse is returned when an HTTP request to upload a file is successful
146146
type bzzUploadResponse struct {
147147
Reference swarm.Address `json:"reference"`
148148
}

pkg/postage/interface.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ type BatchExist interface {
7676
Exists([]byte) (bool, error)
7777
}
7878

79-
// StorageRadiusSetter is used to calculate total batch commitment of the network.
79+
// CommitmentGetter is used to calculate total batch commitment of the network.
8080
type CommitmentGetter interface {
8181
Commitment() (uint64, error)
8282
}

pkg/storer/metrics.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ func (m putterWithMetrics) Put(ctx context.Context, chunk swarm.Chunk) error {
190190

191191
var _ storage.Getter = (*getterWithMetrics)(nil)
192192

193-
// putterWithMetrics wraps storage.Putter and adds metrics.
193+
// getterWithMetrics wraps storage.Getter and adds metrics.
194194
type getterWithMetrics struct {
195195
storage.Getter
196196

0 commit comments

Comments
 (0)