Skip to content

Commit

Permalink
koordlet: fix BlkioReconcile file close (#2056)
Browse files Browse the repository at this point in the history
Signed-off-by: guangwu <guoguangwug@gmail.com>
  • Loading branch information
testwill committed May 23, 2024
1 parent e6ae456 commit f5b611f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/koordlet/qosmanager/plugins/blkio/blkio_reconcile.go
Original file line number Diff line number Diff line change
Expand Up @@ -530,6 +530,7 @@ func getDiskNumbersFromCgroupFile(filePath string) ([]string, error) {
if err != nil {
return nil, err
}
defer file.Close()
fileScanner := bufio.NewScanner(file)
for fileScanner.Scan() {
output := strings.Split(fileScanner.Text(), " ")
Expand Down

0 comments on commit f5b611f

Please sign in to comment.