summaryrefslogtreecommitdiff
path: root/internal/processing/workers/surface.go
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2024-05-02 14:43:00 +0200
committerLibravatar GitHub <noreply@github.com>2024-05-02 13:43:00 +0100
commitebec95a52280980caa88b9c8cd92d69c1a7dc164 (patch)
treeafea663a4ed5a5312755c828e104f27ec137a7d6 /internal/processing/workers/surface.go
parent[feature] Page through accounts as moderator (#2881) (diff)
downloadgotosocial-ebec95a52280980caa88b9c8cd92d69c1a7dc164.tar.xz
[bugfix] Lock when checking/creating notifs to avoid race (#2890)
* [bugfix] Lock when checking/creating notifs to avoid race * test notif spam
Diffstat (limited to 'internal/processing/workers/surface.go')
-rw-r--r--internal/processing/workers/surface.go14
1 files changed, 7 insertions, 7 deletions
diff --git a/internal/processing/workers/surface.go b/internal/processing/workers/surface.go
index 09162b131..5ec905ae8 100644
--- a/internal/processing/workers/surface.go
+++ b/internal/processing/workers/surface.go
@@ -25,16 +25,16 @@ import (
"github.com/superseriousbusiness/gotosocial/internal/typeutils"
)
-// surface wraps functions for 'surfacing' the result
+// Surface wraps functions for 'surfacing' the result
// of processing a message, eg:
// - timelining a status
// - removing a status from timelines
// - sending a notification to a user
// - sending an email
-type surface struct {
- state *state.State
- converter *typeutils.Converter
- stream *stream.Processor
- filter *visibility.Filter
- emailSender email.Sender
+type Surface struct {
+ State *state.State
+ Converter *typeutils.Converter
+ Stream *stream.Processor
+ Filter *visibility.Filter
+ EmailSender email.Sender
}