Skip to content

Commit 44c1d34

Browse files
committed
shorter
1 parent eaccbcb commit 44c1d34

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pkg/workflows/dontime/plugin.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,7 @@ func (p *Plugin) Observation(_ context.Context, outctx ocr3types.OutcomeContext,
7575
if req.ExpiryTime().Before(timeoutCheck) {
7676
// Request has been sitting in queue too long
7777
p.store.RemoveRequest(req.WorkflowExecutionID)
78-
ctx, cancel := context.WithDeadline(context.Background(), req.ExpiryTime())
79-
req.SendTimeout(ctx)
80-
cancel()
78+
req.SendTimeout(context.Background())
8179
continue
8280
}
8381

0 commit comments

Comments
 (0)