multi: fix linter

This commit is contained in:
ziggie
2025-08-12 14:48:32 +02:00
parent e24ae0d7f3
commit 2b856f036e
9 changed files with 50 additions and 35 deletions

View File

@@ -1448,7 +1448,11 @@ func (s *Server) trackPaymentStream(context context.Context,
// No more payment updates.
return nil
}
result := item.(*paymentsdb.MPPayment)
result, ok := item.(*paymentsdb.MPPayment)
if !ok {
return fmt.Errorf("unexpected payment type: %T",
item)
}
log.Tracef("Payment %v updated to state %v",
result.Info.PaymentIdentifier, result.Status)