mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-12-18 02:50:30 +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
|
// VolumeLocks implements a map with atomic operations. It stores a set of all volume IDs
|
||||||
// with an ongoing operation.
|
// with an ongoing operation.
|
||||||
type VolumeLocks struct {
|
type VolumeLocks struct {
|
||||||
locks sets.String
|
locks sets.Set[string]
|
||||||
mux sync.Mutex
|
mux sync.Mutex
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewVolumeLocks returns new VolumeLocks.
|
// NewVolumeLocks returns new VolumeLocks.
|
||||||
func NewVolumeLocks() *VolumeLocks {
|
func NewVolumeLocks() *VolumeLocks {
|
||||||
return &VolumeLocks{
|
return &VolumeLocks{
|
||||||
locks: sets.NewString(),
|
locks: sets.New[string](),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user