From 0abeacaab241db0d4a40117b1e444bf4e782080d Mon Sep 17 00:00:00 2001 From: vicerace Date: Tue, 25 Nov 2025 18:02:22 +0800 Subject: [PATCH] chore: updated mock accounting service function names and comments Signed-off-by: vicerace --- pkg/accounting/mock/accounting.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/accounting/mock/accounting.go b/pkg/accounting/mock/accounting.go index e5e0d98130e..cbf838f9ba3 100644 --- a/pkg/accounting/mock/accounting.go +++ b/pkg/accounting/mock/accounting.go @@ -44,14 +44,14 @@ type creditAction struct { applied bool } -// WithDebitFunc sets the mock Debit function +// WithPrepareDebitFunc sets the mock PrepareDebit function func WithPrepareDebitFunc(f func(peer swarm.Address, price uint64) (accounting.Action, error)) Option { return optionFunc(func(s *Service) { s.prepareDebitFunc = f }) } -// WithDebitFunc sets the mock Debit function +// WithPrepareCreditFunc sets the mock PrepareCredit function func WithPrepareCreditFunc(f func(peer swarm.Address, price uint64, originated bool) (accounting.Action, error)) Option { return optionFunc(func(s *Service) { s.prepareCreditFunc = f