From 3967e4dae92919d39c87d36334929b6b26bacef7 Mon Sep 17 00:00:00 2001 From: Madhu Rajanna Date: Wed, 1 Feb 2023 18:10:01 +0100 Subject: [PATCH] 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 --- internal/util/idlocker.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/util/idlocker.go b/internal/util/idlocker.go index 694f92eb1..92733c19c 100644 --- a/internal/util/idlocker.go +++ b/internal/util/idlocker.go @@ -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](), } }