Method Client.ValidateMessage(). Add param ctx.

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

2
fcm.go
View File

@ -111,7 +111,7 @@ func (c *Client) SendMessage(ctx context.Context, msg Message) (SendResponse, er
return c.doSendRequest(sendRequest, true) return c.doSendRequest(sendRequest, true)
} }
func (c *Client) ValidateMessage(msg Message) (SendResponse, error) { func (c *Client) ValidateMessage(ctx context.Context, msg Message) (SendResponse, error) {
sendRequest := SendRequest{ sendRequest := SendRequest{
ValidateOnly: true, ValidateOnly: true,
Message: msg, Message: msg,