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

pass context down to http client #12

Open
go-dockly opened this issue Oct 17, 2024 · 0 comments
Open

pass context down to http client #12

go-dockly opened this issue Oct 17, 2024 · 0 comments

Comments

@go-dockly
Copy link

func (m *Mandrill) Send(mail *mail.Mail) error
should make the request using a context.Context:
func (m *Mandrill) Send(ctx context.Context, mail *mail.Mail) error
...
req, err = http.NewRequestWithContext(ctx, method, url, body)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant