Add param ctx.

This commit is contained in:
Владислав Весельский 2025-01-24 18:32:14 +03:00
parent f247e11261
commit 7d427c2215
1 changed files with 2 additions and 1 deletions

3
fcm.go
View File

@ -12,6 +12,7 @@ package fcm
import ( import (
"bufio" "bufio"
"bytes" "bytes"
"context"
"encoding/json" "encoding/json"
"fmt" "fmt"
"io" "io"
@ -316,7 +317,7 @@ func makeSendResponseFromPart(part *multipart.Part) (SendResponse, error) {
return resp, nil return resp, nil
} }
func (c *Client) SendEach(messages []Message) (MessageMultiSendResponse, error) { func (c *Client) SendEach(ctx context.Context, messages []Message) (MessageMultiSendResponse, error) {
return c.doSendEachInBatch(messages, false) return c.doSendEachInBatch(messages, false)
} }