Skip to content

Commit 9cc52b7

Browse files
committed
chore: Updated mock accounting service function names and comments
Signed-off-by: vicerace <[email protected]>
1 parent 7980065 commit 9cc52b7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/accounting/mock/accounting.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,14 @@ type creditAction struct {
4444
applied bool
4545
}
4646

47-
// WithDebitFunc sets the mock Debit function
47+
// WithPrepareDebitFunc sets the mock PrepareDebit function
4848
func WithPrepareDebitFunc(f func(peer swarm.Address, price uint64) (accounting.Action, error)) Option {
4949
return optionFunc(func(s *Service) {
5050
s.prepareDebitFunc = f
5151
})
5252
}
5353

54-
// WithDebitFunc sets the mock Debit function
54+
// WithPrepareCreditFunc sets the mock PrepareCredit function
5555
func WithPrepareCreditFunc(f func(peer swarm.Address, price uint64, originated bool) (accounting.Action, error)) Option {
5656
return optionFunc(func(s *Service) {
5757
s.prepareCreditFunc = f

0 commit comments

Comments
 (0)