Skip to content

Commit

Permalink
Fix linting error sets.String is deprecated
Browse files Browse the repository at this point in the history
Signed-off-by: Luca Comellini <luca.com@gmail.com>
  • Loading branch information
lucacome committed Mar 2, 2023
1 parent 8145b15 commit f25ec98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cri/server/bandwidth/linux.go
Expand Up @@ -90,7 +90,7 @@ func (t *tcShaper) nextClassID() (int, error) {
}

scanner := bufio.NewScanner(bytes.NewBuffer(data))
classes := sets.String{}
classes := sets.Set[string]{}
for scanner.Scan() {
line := strings.TrimSpace(scanner.Text())
// skip empty lines
Expand Down

0 comments on commit f25ec98

Please sign in to comment.