multi: thread context through RegisterAttempt method

This commit is contained in:
ziggie committed 2026-02-25 08:02:24 +01:00
1 parent 60026494b1
commit 8bb7150dc2
9 files changed
+70 -42

No files matched your search

+4 -4
View File
@@ -354,8 +354,8 @@ func (m *mockControlTowerOld) DeleteFailedAttempts(phash lntypes.Hash) error {
return nil
}
func (m *mockControlTowerOld) RegisterAttempt(phash lntypes.Hash,
a *paymentsdb.HTLCAttemptInfo) error {
func (m *mockControlTowerOld) RegisterAttempt(_ context.Context,
phash lntypes.Hash, a *paymentsdb.HTLCAttemptInfo) error {
if m.registerAttempt != nil {
m.registerAttempt <- registerAttemptArgs{a}
@@ -746,8 +746,8 @@ func (m *mockControlTower) DeleteFailedAttempts(phash lntypes.Hash) error {
return args.Error(0)
}
func (m *mockControlTower) RegisterAttempt(phash lntypes.Hash,
a *paymentsdb.HTLCAttemptInfo) error {
func (m *mockControlTower) RegisterAttempt(_ context.Context,
phash lntypes.Hash, a *paymentsdb.HTLCAttemptInfo) error {
args := m.Called(phash, a)
return args.Error(0)