mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-09 16:00:22 +00:00
cleanup: fix static checks
fix SA1019 static check to replace io/utils with os package and sets with generic sets Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
This commit is contained in:
parent
9c8de9471e
commit
3967e4dae9
@ -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](),
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user