Respect provider rate limits and preserve bank connections on throttling

This commit is contained in:
Lars Nolden
2026-09-10 17:25:09 +02:00
parent 2259db3e85
commit ba3ea6ae5a
14 changed files with 1250 additions and 95 deletions
+3 -3
View File
@@ -185,11 +185,11 @@ func TestRenewedConsentWakesSchedulerAndAutomaticallyImports(t *testing.T) {
type recoveryBank struct{ historyBank }
func (b *recoveryBank) Status(ctx context.Context, id string) (banking.Session, error) {
func (b *recoveryBank) Status(ctx context.Context, id string) (banking.SessionStatus, error) {
if id != b.session.ID {
return banking.Session{}, banking.ErrReconnect
return banking.SessionStatus{}, banking.ErrReconnect
}
return b.session, nil
return b.historyBank.Status(ctx, id)
}
func TestInterruptedRenewalDiscardsSupersededConsentDuringRecovery(t *testing.T) {