Skip to content

Commit

Permalink
Merge pull request #14 from lyft/fix-typo
Browse files Browse the repository at this point in the history
Variable created would shadow external variable
  • Loading branch information
Ketan Umare authored Sep 18, 2019
2 parents 6fcd80b + e8594d3 commit f9f1d75
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions flytepropeller/pkg/controller/nodes/task/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -256,9 +256,9 @@ func (h *taskHandler) StartNode(ctx context.Context, w v1alpha1.ExecutableWorkfl
logger.Errorf(ctx, "Panic in plugin for TaskType [%s]", task.TaskType())
}
}()
t := h.metrics.pluginExecutionLatency.Start(ctx)
s := h.metrics.pluginExecutionLatency.Start(ctx)
taskStatus, err = t.StartTask(ctx, taskCtx, task.CoreTask(), nodeInputs)
t.Stop()
s.Stop()
}()

if err != nil {
Expand Down Expand Up @@ -309,9 +309,9 @@ func (h *taskHandler) CheckNodeStatus(ctx context.Context, w v1alpha1.Executable
logger.Errorf(ctx, "Panic in plugin for TaskType [%s]", task.TaskType())
}
}()
t := h.metrics.pluginExecutionLatency.Start(ctx)
s := h.metrics.pluginExecutionLatency.Start(ctx)
taskStatus, err = t.CheckTaskStatus(ctx, taskCtx, task.CoreTask())
t.Stop()
s.Stop()
}()

if err != nil {
Expand Down

0 comments on commit f9f1d75

Please sign in to comment.