Skip to content

Commit

Permalink
refine create state
Browse files Browse the repository at this point in the history
  • Loading branch information
yanjiaxin534 committed Jan 20, 2025
1 parent d32f433 commit d233804
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/pkg/apis/v1alpha1/vendors/solution-vendor.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ func (e *SolutionVendor) handleDeploymentPlan(ctx context.Context, event v1alpha
return err
}

planState := e.createPlanState(ctx, planEnvelope)
planState := e.createPlanState(planEnvelope)
lockName := api_utils.GenerateKeyLockName(planState.Namespace, planState.Deployment.Instance.ObjectMeta.Name)
e.SolutionManager.KeyLockProvider.TryLock(lockName)
log.InfoCtx(ctx, "begin to save summary for %s", planEnvelope.PlanId)
Expand Down Expand Up @@ -216,7 +216,7 @@ func (e *SolutionVendor) publishStepResult(ctx context.Context, target string, p
}

// create inital plan state
func (e *SolutionVendor) createPlanState(ctx context.Context, planEnvelope PlanEnvelope) *PlanState {
func (e *SolutionVendor) createPlanState(planEnvelope PlanEnvelope) *PlanState {
return &PlanState{
PlanId: planEnvelope.PlanId,
StartTime: time.Now(),
Expand Down

0 comments on commit d233804

Please sign in to comment.