Skip to content

Commit

Permalink
lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
bnsblue committed Jan 28, 2020
1 parent 537e652 commit 779aab5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/tasks/plugins/hive/execution_state.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ func GetAllocationToken(ctx context.Context, tCtx core.TaskExecutionContext, cur
} else {
newState.AllocationTokenRequestStartTime = currentState.AllocationTokenRequestStartTime
}
waitTime := time.Now().Sub(newState.AllocationTokenRequestStartTime)
waitTime := time.Since(newState.AllocationTokenRequestStartTime)
metric.ResourceWaitTime.Observe(waitTime.Seconds())

if allocationStatus == core.AllocationStatusGranted {
Expand Down

0 comments on commit 779aab5

Please sign in to comment.