Skip to content

Commit 933a466

Browse files
committed
make wrappedFn private
1 parent b15aa03 commit 933a466

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

dbos/queue.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ func (qr *queueRunner) run(ctx *dbosContext) {
243243
}
244244
}
245245

246-
_, err := registeredWorkflow.WrappedFunction(ctx, input, WithWorkflowID(workflow.id))
246+
_, err := registeredWorkflow.wrappedFunction(ctx, input, WithWorkflowID(workflow.id))
247247
if err != nil {
248248
qr.logger.Error("Error running queued workflow", "error", err)
249249
}

dbos/recovery.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ func recoverPendingWorkflows(ctx *dbosContext, executorIDs []string) ([]Workflow
5959
WithWorkflowID(workflow.ID),
6060
}
6161
// Create a workflow context from the executor context
62-
handle, err := registeredWorkflow.WrappedFunction(ctx, workflow.Input, opts...)
62+
handle, err := registeredWorkflow.wrappedFunction(ctx, workflow.Input, opts...)
6363
if err != nil {
6464
return nil, err
6565
}

dbos/workflow.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ func (h *workflowHandleProxy[R]) GetWorkflowID() string {
270270
type wrappedWorkflowFunc func(ctx DBOSContext, input any, opts ...WorkflowOption) (WorkflowHandle[any], error)
271271

272272
type WorkflowRegistryEntry struct {
273-
WrappedFunction wrappedWorkflowFunc
273+
wrappedFunction wrappedWorkflowFunc
274274
MaxRetries int
275275
Name string
276276
FQN string // Fully qualified name of the workflow function
@@ -290,7 +290,7 @@ func registerWorkflow(ctx DBOSContext, workflowFQN string, fn wrappedWorkflowFun
290290

291291
// Check if workflow already exists and store atomically using LoadOrStore
292292
entry := WorkflowRegistryEntry{
293-
WrappedFunction: fn,
293+
wrappedFunction: fn,
294294
FQN: workflowFQN,
295295
MaxRetries: maxRetries,
296296
Name: customName,

0 commit comments

Comments
 (0)