Skip to content

Commit c2f300a

Browse files
authored
chore: fix some typos in comment (#5075)
Signed-off-by: riyueguang <[email protected]>
1 parent 39e9dc8 commit c2f300a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

pkg/storageincentives/agent.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ func (a *Agent) handleClaim(ctx context.Context, round uint64) error {
390390
}
391391

392392
func (a *Agent) handleSample(ctx context.Context, round uint64) (bool, error) {
393-
// minimum proximity between the achor and the stored chunks
393+
// minimum proximity between the anchor and the stored chunks
394394
committedDepth := a.store.CommittedDepth()
395395

396396
if a.state.IsFrozen() {

pkg/storer/internal/reserve/reserve.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ func (r *Reserve) IterateChunksItems(startBin uint8, cb func(*ChunkBinItem) (boo
497497
return err
498498
}
499499

500-
// Reset removes all the entires in the reserve. Must be done before any calls to the reserve.
500+
// Reset removes all the entries in the reserve. Must be done before any calls to the reserve.
501501
func (r *Reserve) Reset(ctx context.Context) error {
502502
size := r.Size()
503503

pkg/storer/sample.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ type Sample struct {
5454
// In order to optimize this we use a simple pipeline pattern:
5555
// Iterate chunk addresses -> Get the chunk data and calculate transformed hash -> Assemble the sample
5656
// If the node has doubled their capacity by some factor, sampling process need to only pertain to the
57-
// chunks of the selected neighborhood as determined by the anchor and the "committed depth" and NOT the whole reseve.
57+
// chunks of the selected neighborhood as determined by the anchor and the "committed depth" and NOT the whole reserve.
5858
// The committed depth is the sum of the radius and the doubling factor.
5959
// For example, the committed depth is 11, but the local node has a doubling factor of 3, so the
6060
// local radius will eventually drop to 8. The sampling must only consider chunks with proximity 11 to the anchor.

0 commit comments

Comments
 (0)