Skip to content

Commit fd9fa23

Browse files
committed
authmailbox: pass fallback service URLs into MultiSubscriptionConfig
Add support for passing fallback authmailbox service URLs into MultiSubscriptionConfig. This prepares the config structure to handle server-defined fallback behavior across multiple subscriptions.
1 parent 2234cc8 commit fd9fa23

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

authmailbox/multi_subscription.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ type MultiSubscriptionConfig struct {
5353
// clients. All fields except the ServerAddress are used to create
5454
// new mailbox clients when needed.
5555
BaseClientConfig ClientConfig
56+
57+
// FallbackMboxURLs are fallback proof courier AuthMailbox services.
58+
FallbackMboxURLs []url.URL
5659
}
5760

5861
// NewMultiSubscription creates a new MultiSubscription instance.

tapgarden/custodian.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,7 @@ func NewCustodian(cfg *CustodianConfig) *Custodian {
244244
MinBackoff: backoffCfg.InitialBackoff,
245245
MaxBackoff: backoffCfg.MaxBackoff,
246246
},
247+
FallbackMboxURLs: cfg.FallbackMboxURLs,
247248
},
248249
),
249250
ContextGuard: &fn.ContextGuard{

0 commit comments

Comments
 (0)