Skip to content

Commit f71c4d4

Browse files
committed
fix: remove defer to certainly save the startTime
Signed-off-by: t-kikuc <[email protected]>
1 parent b809fda commit f71c4d4

File tree

1 file changed

+1
-1
lines changed
  • pkg/app/pipedv1/plugin/wait/deployment

1 file changed

+1
-1
lines changed

Diff for: pkg/app/pipedv1/plugin/wait/deployment/wait.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ func (s *deploymentServiceServer) execute(ctx context.Context, in *deployment.Ex
4848
// When this is the first run.
4949
initialStart = time.Now()
5050
}
51-
defer s.saveStartTime(ctx, initialStart, in.Stage.Id)
51+
s.saveStartTime(ctx, initialStart, in.Stage.Id)
5252

5353
return wait(ctx, duration, initialStart, slp)
5454
}

0 commit comments

Comments
 (0)