bump reva to ec27f5f8feb3

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
This commit is contained in:
Jörn Friedrich Dreyer
2023-02-15 14:25:20 +00:00
parent 92923f6801
commit 9b00f02383
9 changed files with 195 additions and 149 deletions

View File

@@ -10,7 +10,7 @@ import (
// PostprocessingService is an instance of the service handling postprocessing of files
type PostprocessingService struct {
log log.Logger
events <-chan interface{}
events <-chan events.Event
pub events.Publisher
steps []events.Postprocessingstep
c config.Postprocessing
@@ -42,7 +42,7 @@ func (pps *PostprocessingService) Run() error {
current := make(map[string]*postprocessing.Postprocessing)
for e := range pps.events {
var next interface{}
switch ev := e.(type) {
switch ev := e.Event.(type) {
case events.BytesReceived:
pp := postprocessing.New(ev.UploadID, ev.URL, ev.ExecutingUser, ev.Filename, ev.Filesize, ev.ResourceID, pps.steps, pps.c.Delayprocessing)
current[ev.UploadID] = pp