Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add APNS timeouts for a2 #741

Merged
merged 2 commits into from
Jul 29, 2024

Conversation

taddes
Copy link
Contributor

@taddes taddes commented Jul 25, 2024

Per ClientConfig struct in a2 library, updated autoconnect Settings struct to hold request_timeout_secs and pool_idle_timeout_secs, define default() struct to pass into ClientConfig, with defaults set to what are the current defaults in a2. We can of course change them going forward. This way the settings are untethered from whatever a2 may change them to.

Some contextual comments are included for clarity.

Closes SYNC-4307

@taddes taddes self-assigned this Jul 25, 2024
@@ -46,6 +46,12 @@ pub struct Settings {
pub fcm: FcmSettings,
pub apns: ApnsSettings,

// These values correspond to the a2 library ClientConfig struct.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These settings are specific to APNS only. They should be placed in ApnsSettings.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Np, I'll move them. The ticket had mentioned creating Autoendpoint settings and then passing those values to a2 during router configuration, so I put it in the autoendpoint settings. Does make more sense for them to be with apns, indeed!

@taddes taddes requested a review from jrconlin July 26, 2024 14:58
@taddes taddes force-pushed the feat/SYNC-4302_add_apns_timeouts_a2_lib branch from 83ba6e4 to 22c3440 Compare July 29, 2024 18:38
@taddes taddes merged commit d321de3 into master Jul 29, 2024
1 check passed
@taddes taddes deleted the feat/SYNC-4302_add_apns_timeouts_a2_lib branch July 29, 2024 21:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants