summaryrefslogtreecommitdiff
path: root/internal/media/types.go
diff options
context:
space:
mode:
authorLibravatar tsmethurst <tobi.smethurst@protonmail.com>2022-02-08 13:38:44 +0100
committerLibravatar tsmethurst <tobi.smethurst@protonmail.com>2022-02-08 13:38:44 +0100
commit8c0141d103cb70fdbe74f1d5a936860707da973f (patch)
tree8ccd4483eee676b58f9246ceadcfd13ef886962f /internal/media/types.go
parenthopefully fix potential race condition (diff)
downloadgotosocial-8c0141d103cb70fdbe74f1d5a936860707da973f.tar.xz
store and retrieve processState atomically
Diffstat (limited to 'internal/media/types.go')
-rw-r--r--internal/media/types.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/media/types.go b/internal/media/types.go
index b9c79d464..a6b38b467 100644
--- a/internal/media/types.go
+++ b/internal/media/types.go
@@ -45,7 +45,7 @@ const (
mimeImagePng = mimeImage + "/" + mimePng
)
-type processState int
+type processState int32
const (
received processState = iota // processing order has been received but not done yet