Skip to content

Commit

Permalink
Replace ioutil with os (apache#133)
Browse files Browse the repository at this point in the history
perf:Replace ioutil with os
  • Loading branch information
xiaobiaozhao authored Jan 10, 2024
1 parent e7b28c3 commit 6a5164d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cmd/server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ package main

import (
"flag"
"io/ioutil"
"os"
"os/signal"
"syscall"
Expand Down Expand Up @@ -74,7 +73,7 @@ func main() {
logger.Get().Info("Kvrocks controller is running with version: " + version.Version)
cfg := config.Default()
if len(configPath) != 0 {
content, err := ioutil.ReadFile(configPath)
content, err := os.ReadFile(configPath)
if err != nil {
logger.Get().With(zap.Error(err)).Error("Failed to read the config file")
return
Expand Down

0 comments on commit 6a5164d

Please sign in to comment.