Skip to content

Commit 08d7587

Browse files
committed
Fix small linting errors
1 parent 16dd196 commit 08d7587

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

workflow/subworkflow.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ func CreateSubWorkflowInstance[TResult any](ctx Context, options SubWorkflowOpti
4242
})
4343
}
4444

45-
func createSubWorkflowInstance[TResult any](ctx Context, options SubWorkflowOptions, attempt int, wf Workflow, args ...any) Future[TResult] {
45+
func createSubWorkflowInstance[TResult any](ctx Context, options SubWorkflowOptions, _ int, wf Workflow, args ...any) Future[TResult] {
4646
f := sync.NewFuture[TResult]()
4747

4848
// If the context is already canceled, return immediately.

workflow/tracer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ func start(ctx Context, name string, opts ...trace.SpanStartOption) (sync.Contex
8989

9090
// Use workflow timestamp
9191
opts = append(opts, trace.WithTimestamp(state.Time()))
92-
sctx, span := tracer.Start(sctx, name, opts...)
92+
_, span := tracer.Start(sctx, name, opts...)
9393

9494
return tracing.ContextWithSpan(ctx, span), &wfSpan{span, state}
9595
}

0 commit comments

Comments
 (0)