summaryrefslogtreecommitdiff
path: root/internal/processing/workers/workers.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/processing/workers/workers.go')
-rw-r--r--internal/processing/workers/workers.go36
1 files changed, 18 insertions, 18 deletions
diff --git a/internal/processing/workers/workers.go b/internal/processing/workers/workers.go
index c0612de27..8488e501c 100644
--- a/internal/processing/workers/workers.go
+++ b/internal/processing/workers/workers.go
@@ -63,30 +63,30 @@ func New(
converter: converter,
}
- // Init shared logic wipe
- // status util func.
- wipeStatus := wipeStatusF(
- state,
- media,
- surface,
- )
+ // Init shared util funcs.
+ utilF := &utilF{
+ state: state,
+ media: media,
+ account: account,
+ surface: surface,
+ }
return Processor{
workers: &state.Workers,
clientAPI: &clientAPI{
- state: state,
- converter: converter,
- surface: surface,
- federate: federate,
- wipeStatus: wipeStatus,
- account: account,
+ state: state,
+ converter: converter,
+ surface: surface,
+ federate: federate,
+ account: account,
+ utilF: utilF,
},
fediAPI: &fediAPI{
- state: state,
- surface: surface,
- federate: federate,
- wipeStatus: wipeStatus,
- account: account,
+ state: state,
+ surface: surface,
+ federate: federate,
+ account: account,
+ utilF: utilF,
},
}
}