Skip to content

Commit 00d14c3

Browse files
authored
chore: fix some function names in comment (#5011)
Signed-off-by: hugehope <[email protected]>
1 parent c84d434 commit 00d14c3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pkg/accounting/accounting.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1498,7 +1498,7 @@ func (a *Accounting) decreaseOriginatedBalanceTo(peer swarm.Address, limit *big.
14981498
return nil
14991499
}
15001500

1501-
// decreaseOriginatedBalanceTo decreases the originated balance by provided amount even below 0
1501+
// decreaseOriginatedBalanceBy decreases the originated balance by provided amount even below 0
15021502
func (a *Accounting) decreaseOriginatedBalanceBy(peer swarm.Address, amount *big.Int) error {
15031503
loggerV2 := a.logger.V(2).Register()
15041504

pkg/accounting/accounting_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ func TestAccountingAddBalance(t *testing.T) {
182182
}
183183
}
184184

185-
// TestAccountingAddBalance does several accounting actions and verifies the balance after each steep
185+
// TestAccountingAddOriginatedBalance does several accounting actions and verifies the balance after each steep
186186
func TestAccountingAddOriginatedBalance(t *testing.T) {
187187
t.Parallel()
188188

@@ -415,7 +415,7 @@ func TestAccountingReserve(t *testing.T) {
415415
}
416416
}
417417

418-
// TestAccountingReserve tests that reserve returns an error if the payment threshold would be exceeded,
418+
// TestAccountingReserveAheadOfTime tests that reserve returns an error if the payment threshold would be exceeded,
419419
// but extends this limit by 'n' (max 2) seconds worth of refresh rate if last refreshment was 'n' seconds ago.
420420
func TestAccountingReserveAheadOfTime(t *testing.T) {
421421
t.Parallel()
@@ -1196,7 +1196,7 @@ func TestAccountingSurplusBalance(t *testing.T) {
11961196
}
11971197
}
11981198

1199-
// TestAccountingNotifyPayment tests that payments adjust the balance
1199+
// TestAccountingNotifyPaymentReceived tests that payments adjust the balance
12001200
func TestAccountingNotifyPaymentReceived(t *testing.T) {
12011201
t.Parallel()
12021202

0 commit comments

Comments
 (0)