Skip to content

Commit 0b54b10

Browse files
authored
chore: fix some comments (#5052)
Signed-off-by: avoidalone <[email protected]>
1 parent e93677b commit 0b54b10

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

pkg/accounting/accounting.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ type accountingPeer struct {
134134
refreshReservedBalance *big.Int // amount debt potentially decreased during an ongoing refreshment
135135
ghostBalance *big.Int // amount potentially could have been debited for but was not
136136
paymentThreshold *big.Int // the threshold at which the peer expects us to pay
137-
earlyPayment *big.Int // individual early payment threshold calculated from from payment threshold and early payment percentage
137+
earlyPayment *big.Int // individual early payment threshold calculated from payment threshold and early payment percentage
138138
paymentThresholdForPeer *big.Int // individual payment threshold at which the peer is expected to pay
139139
disconnectLimit *big.Int // individual disconnect threshold calculated from tolerance and payment threshold for peer
140140
refreshTimestampMilliseconds int64 // last time we attempted and succeeded time-based settlement

pkg/file/splitter/splitter_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ func TestSplitIncomplete(t *testing.T) {
3636
}
3737

3838
// TestSplitSingleChunk hashes one single chunk and verifies
39-
// that that corresponding chunk exist in the store afterwards.
39+
// that corresponding chunk exist in the store afterwards.
4040
func TestSplitSingleChunk(t *testing.T) {
4141
t.Parallel()
4242

pkg/postage/postagecontract/mock/contract.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ func (s *contractMock) Paused(ctx context.Context) (bool, error) {
4040
return s.paused(ctx)
4141
}
4242

43-
// Option is a an option passed to New
43+
// Option is an option passed to New
4444
type Option func(*contractMock)
4545

4646
// New creates a new mock BatchStore.

pkg/retrieval/retrieval_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ func TestDelivery(t *testing.T) {
7979
)
8080

8181
// client mock storer does not store any data at this point
82-
// but should be checked at at the end of the test for the
82+
// but should be checked at the end of the test for the
8383
// presence of the chunk address key and value to ensure delivery
8484
// was successful
8585
clientMockStorer := &testStorer{ChunkStore: inmemchunkstore.New()}

pkg/storageincentives/staking/mock/contract.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ func (s *stakingContractMock) IsOverlayFrozen(ctx context.Context, block uint64)
5252
return s.isFrozen(ctx, block)
5353
}
5454

55-
// Option is a an option passed to New
55+
// Option is an option passed to New
5656
type Option func(mock *stakingContractMock)
5757

5858
// New creates a new mock BatchStore.

0 commit comments

Comments
 (0)