This is an automated email from the ASF dual-hosted git repository.
twice pushed a commit to branch unstable
in repository https://gitbox.apache.org/repos/asf/kvrocks-controller.git
The following commit(s) were added to refs/heads/unstable by this push:
new 6a5164d Replace ioutil with os (#133)
6a5164d is described below
commit 6a5164d0f3599b73cc49ee6ae378e6be1241b55c
Author: xiaobiaozhao <[email protected]>
AuthorDate: Wed Jan 10 23:44:27 2024 +0800
Replace ioutil with os (#133)
perf:Replace ioutil with os
---
cmd/server/main.go | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/cmd/server/main.go b/cmd/server/main.go
index f934c8b..1eb092c 100644
--- a/cmd/server/main.go
+++ b/cmd/server/main.go
@@ -21,7 +21,6 @@ package main
import (
"flag"
- "io/ioutil"
"os"
"os/signal"
"syscall"
@@ -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