Skip to content

Commit

Permalink
lint: time.Now.Sub -> time.Since
Browse files Browse the repository at this point in the history
  • Loading branch information
abe-winter committed Jan 22, 2024
1 parent 7dac33e commit 9b0f0d0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion components/board/genericlinux/gpio.go
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ func accurateSleep(ctx context.Context, duration time.Duration) bool {
}
}

for time.Now().Sub(startTime) < duration {
for time.Since(startTime) < duration {
select {
case <-ctx.Done():
return false
Expand Down
1 change: 0 additions & 1 deletion gostream/stream.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import (

"github.com/edaniels/golog"
"github.com/google/uuid"

// register screen drivers.
_ "github.com/pion/mediadevices/pkg/driver/microphone"
"github.com/pion/mediadevices/pkg/prop"
Expand Down

0 comments on commit 9b0f0d0

Please sign in to comment.