Skip to content

Commit

Permalink
use time.Since instead of time.Now().Sub
Browse files Browse the repository at this point in the history
  • Loading branch information
mrsoftware committed Sep 21, 2024
1 parent f2c9759 commit ee9c9dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vabastegi.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func (a *App[T]) Builds(ctx context.Context, providers ...Provider[T]) (err erro
a.options.EventHandlers.Publish(&OnBuildsExecuting{BuildAt: startAt})

defer func() {
a.options.EventHandlers.Publish(&OnApplicationShutdownExecuted{Runtime: time.Now().Sub(startAt), Err: err})
a.options.EventHandlers.Publish(&OnApplicationShutdownExecuted{Runtime: time.Since(startAt), Err: err})
}()

for _, provider := range providers {
Expand Down

0 comments on commit ee9c9dd

Please sign in to comment.