Method Client.ValidateMessage(). Add param ctx.
This commit is contained in:
parent
ee2c656903
commit
c455425a19
2
fcm.go
2
fcm.go
|
@ -111,7 +111,7 @@ func (c *Client) SendMessage(ctx context.Context, msg Message) (SendResponse, er
|
|||
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{
|
||||
ValidateOnly: true,
|
||||
Message: msg,
|
||||
|
|
Loading…
Reference in New Issue