Skip to content

Commit aad0db7

Browse files
committed
style nits
1 parent 8141109 commit aad0db7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

dbos/workflows_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -359,14 +359,14 @@ func stepWithinAStepWorkflow(dbosCtx DBOSContext, input string) (string, error)
359359
// Global counter for retry testing
360360
var stepRetryAttemptCount int
361361

362-
func stepRetryAlwaysFailsStep(ctx context.Context) (string, error) {
362+
func stepRetryAlwaysFailsStep(_ context.Context) (string, error) {
363363
stepRetryAttemptCount++
364364
return "", fmt.Errorf("always fails - attempt %d", stepRetryAttemptCount)
365365
}
366366

367367
var stepIdempotencyCounter int
368368

369-
func stepIdempotencyTest(ctx context.Context) (string, error) {
369+
func stepIdempotencyTest(_ context.Context) (string, error) {
370370
stepIdempotencyCounter++
371371
return "", nil
372372
}
@@ -1858,7 +1858,7 @@ type setEventWorkflowInput struct {
18581858
}
18591859

18601860
func setEventWorkflow(ctx DBOSContext, input setEventWorkflowInput) (string, error) {
1861-
err := SetEvent(ctx, GenericWorkflowSetEventInput[string]{Key: input.Key, Message: input.Message})
1861+
err := SetEvent(ctx, GenericWorkflowSetEventInput[string](input))
18621862
if err != nil {
18631863
return "", err
18641864
}
@@ -1897,7 +1897,7 @@ func setTwoEventsWorkflow(ctx DBOSContext, input setEventWorkflowInput) (string,
18971897
}
18981898

18991899
func setEventIdempotencyWorkflow(ctx DBOSContext, input setEventWorkflowInput) (string, error) {
1900-
err := SetEvent(ctx, GenericWorkflowSetEventInput[string]{Key: input.Key, Message: input.Message})
1900+
err := SetEvent(ctx, GenericWorkflowSetEventInput[string](input))
19011901
if err != nil {
19021902
return "", err
19031903
}

0 commit comments

Comments
 (0)