mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-19 08:37:06 +00:00
Apply 1 suggestion(s) to 1 file(s)
This commit is contained in:
@ -186,8 +186,8 @@ func (c *client) CreateAttachment(att *Attachment, r io.Reader, sig io.Reader) (
|
|||||||
}
|
}
|
||||||
|
|
||||||
cx, cancel := context.WithCancel(req.Context())
|
cx, cancel := context.WithCancel(req.Context())
|
||||||
req = req.WithContext(cx)
|
|
||||||
defer cancel()
|
defer cancel()
|
||||||
|
req = req.WithContext(cx)
|
||||||
|
|
||||||
// We will write the request as long as it is sent to the API.
|
// We will write the request as long as it is sent to the API.
|
||||||
var res CreateAttachmentRes
|
var res CreateAttachmentRes
|
||||||
|
|||||||
Reference in New Issue
Block a user