Move to typical go project layout, fix golangci-lint warnings, update deps
This commit is contained in:
2
vendor/github.com/shirou/gopsutil/v3/internal/common/sleep.go
generated
vendored
2
vendor/github.com/shirou/gopsutil/v3/internal/common/sleep.go
generated
vendored
@@ -6,7 +6,7 @@ import (
|
||||
)
|
||||
|
||||
// Sleep awaits for provided interval.
|
||||
// Can be interrupted by context cancelation.
|
||||
// Can be interrupted by context cancellation.
|
||||
func Sleep(ctx context.Context, interval time.Duration) error {
|
||||
timer := time.NewTimer(interval)
|
||||
select {
|
||||
|
||||
Reference in New Issue
Block a user