Skip to content

Commit

Permalink
cleanup: fix static checks
Browse files Browse the repository at this point in the history
fix SA1019 static check to replace
io/utils with os package and sets
with generic sets

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
  • Loading branch information
Madhu-1 authored and mergify[bot] committed Feb 3, 2023
1 parent 9c8de94 commit 3967e4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/util/idlocker.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@ const (
// VolumeLocks implements a map with atomic operations. It stores a set of all volume IDs
// with an ongoing operation.
type VolumeLocks struct {
locks sets.String
locks sets.Set[string]
mux sync.Mutex
}

// NewVolumeLocks returns new VolumeLocks.
func NewVolumeLocks() *VolumeLocks {
return &VolumeLocks{
locks: sets.NewString(),
locks: sets.New[string](),
}
}

Expand Down

0 comments on commit 3967e4d

Please sign in to comment.