Skip to content

Commit d8b5ceb

Browse files
committed
workflow: clean-up
1 parent 3e3b3b3 commit d8b5ceb

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

internal/workflow/processing.go

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,6 @@ func (w *ProcessingWorkflow) Execute(ctx workflow.Context, req *collection.Proce
182182
logger.Info(
183183
"Workflow completed successfully!",
184184
zap.Uint("collectionID", tinfo.CollectionID),
185-
zap.String("originalID", tinfo.OriginalID),
186185
zap.String("pipeline", tinfo.Event.PipelineName),
187186
zap.String("event", tinfo.Event.String()),
188187
zap.String("status", tinfo.Status.String()),
@@ -263,10 +262,9 @@ func (a *DownloadActivity) Execute(ctx context.Context, tinfo *TransferInfo) (*T
263262
}
264263

265264
var (
266-
name string
267-
kind string
268-
path string
269-
originalID string
265+
name string
266+
kind string
267+
path string
270268
)
271269

272270
var isArchived bool
@@ -315,7 +313,6 @@ func (a *DownloadActivity) Execute(ctx context.Context, tinfo *TransferInfo) (*T
315313
kind = res[1] // E.g.: DPJ-SIP
316314
name = fmt.Sprintf("%s-%s", res[1], res[2][0:13]) // E.g.: DPJ-SIP-<uuid[0:13]>
317315
path = tmpDir // E.g.: /foo/bar/DPJ-SIP-uuid
318-
originalID = res[2] // E.g.: <uuid>
319316
} else {
320317
//
321318
// When we just have a file or an archive with a format that we can't handle.
@@ -352,7 +349,6 @@ func (a *DownloadActivity) Execute(ctx context.Context, tinfo *TransferInfo) (*T
352349

353350
tinfo.Name = name
354351
tinfo.Kind = kind
355-
tinfo.OriginalID = originalID
356352
tinfo.RelPath = relPath
357353
tinfo.FullPath = path
358354

0 commit comments

Comments
 (0)