Skip to content

feat(fcm): add retry config client option support#760

Closed
aminpaydar wants to merge 1 commit intofirebase:masterfrom
aminpaydar:add-retry-config-option
Closed

feat(fcm): add retry config client option support#760
aminpaydar wants to merge 1 commit intofirebase:masterfrom
aminpaydar:add-retry-config-option

Conversation

@aminpaydar
Copy link
Copy Markdown

Allow callers to pass retry policy through option.ClientOption so Messaging can honor custom retry behavior from NewApp options. When no retry option is supplied the default retry config is still applied.

Allow callers to pass retry policy through option.ClientOption so Messaging can honor custom retry behavior from NewApp options.
When no retry option is supplied the default retry config is still applied.
@aminpaydar aminpaydar closed this May 6, 2026
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces the ability to configure HTTP retry behavior for the Firebase Admin SDK by adding a WithRetryConfig client option. Key changes include updating NewHTTPClient to extract retry configurations from options, implementing a CloneHTTPClient function to perform deep copies of client settings, and refactoring the messaging service to utilize these new capabilities while ensuring service-specific headers do not affect the base configuration. I have no feedback to provide as the review comments were explanatory or provided non-actionable instructions for future maintenance.

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.

1 participant