summaryrefslogtreecommitdiff
path: root/internal/processing/account/update.go
diff options
context:
space:
mode:
authorLibravatar tsmethurst <tobi.smethurst@protonmail.com>2022-01-24 18:12:28 +0100
committerLibravatar tsmethurst <tobi.smethurst@protonmail.com>2022-01-24 18:12:28 +0100
commita6fb93ae2ab14e43985fa45be479a0ed312e14df (patch)
tree4aa9d6ae1093d43e15785519bd2b90155b1088ac /internal/processing/account/update.go
parentuse background context w/deadline (diff)
downloadgotosocial-a6fb93ae2ab14e43985fa45be479a0ed312e14df.tar.xz
ctx => innerctx
Diffstat (limited to 'internal/processing/account/update.go')
-rw-r--r--internal/processing/account/update.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/processing/account/update.go b/internal/processing/account/update.go
index 758cc6600..4d10f1d0c 100644
--- a/internal/processing/account/update.go
+++ b/internal/processing/account/update.go
@@ -140,7 +140,7 @@ func (p *processor) UpdateAvatar(ctx context.Context, avatar *multipart.FileHead
return nil, fmt.Errorf("UpdateAvatar: avatar with size %d exceeded max image size of %d bytes", avatar.Size, maxImageSize)
}
- dataFunc := func(ctx context.Context) (io.Reader, int, error) {
+ dataFunc := func(innerCtx context.Context) (io.Reader, int, error) {
f, err := avatar.Open()
return f, int(avatar.Size), err
}
@@ -167,7 +167,7 @@ func (p *processor) UpdateHeader(ctx context.Context, header *multipart.FileHead
return nil, fmt.Errorf("UpdateHeader: header with size %d exceeded max image size of %d bytes", header.Size, maxImageSize)
}
- dataFunc := func(ctx context.Context) (io.Reader, int, error) {
+ dataFunc := func(innerCtx context.Context) (io.Reader, int, error) {
f, err := header.Open()
return f, int(header.Size), err
}