Skip to content

Commit

Permalink
fix-lint: use time.Since
Browse files Browse the repository at this point in the history
  • Loading branch information
F1bonacc1 committed Oct 2, 2024
1 parent e68fb5f commit a5fb990
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ func (p *PcClient) ErrorForSecs() int {
if !p.isErrored {
return 0
}
return int(time.Now().Sub(p.firstError).Seconds())
return int(time.Since(p.firstError).Seconds())
}

func (p *PcClient) logError(err error) error {
Expand Down

0 comments on commit a5fb990

Please sign in to comment.