Method Client.SendMessage(). Add param ctx.

This commit is contained in:
Владислав Весельский 2025-01-25 11:06:23 +03:00
parent 61047cba6a
commit ee2c656903
1 changed files with 1 additions and 1 deletions

2
fcm.go
View File

@ -102,7 +102,7 @@ func NewClient(cfg ClientConfig, ts oauth2.TokenSource, hc *http.Client, logger
} }
} }
func (c *Client) SendMessage(msg Message) (SendResponse, error) { func (c *Client) SendMessage(ctx context.Context, msg Message) (SendResponse, error) {
sendRequest := SendRequest{ sendRequest := SendRequest{
ValidateOnly: false, ValidateOnly: false,
Message: msg, Message: msg,