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

refactor(fcm): add context parameter to various functions #775

Merged
merged 1 commit into from
Jun 15, 2024
Merged

Conversation

appleboy
Copy link
Owner

  • Introduce graceful.NewManager initialization in main.go
  • Modify pinger function to accept a context parameter
  • Update PushToAndroid function to accept a context parameter
  • Update InitFCMClient function to accept a context parameter
  • Replace context.Background() with passed context in various functions
  • Add context import in notification_fcm_test.go

- Introduce `graceful.NewManager` initialization in `main.go`
- Modify `pinger` function to accept a context parameter
- Update `PushToAndroid` function to accept a context parameter
- Update `InitFCMClient` function to accept a context parameter
- Replace `context.Background()` with passed context in various functions
- Add context import in `notification_fcm_test.go`

Signed-off-by: appleboy <appleboy.tw@gmail.com>
@appleboy appleboy changed the title refactor: add context parameter to various functions refactor(fcm): add context parameter to various functions Jun 15, 2024
@appleboy appleboy merged commit 228ec1d into master Jun 15, 2024
8 of 10 checks passed
@appleboy appleboy deleted the android branch June 15, 2024 01:41
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