Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Steinhardt <psteinhardt@gitlab.com>2021-09-16 15:15:24 +0300
committerPatrick Steinhardt <psteinhardt@gitlab.com>2021-09-20 17:22:33 +0300
commitd1884b6fae4b65893d3e99be13510648da0b576f (patch)
tree9159dcbea2c73e6aa3eac44c68e7bef7e5bbcdd9 /cmd/gitaly-wrapper
parent127ca6b9de8d5cca31db5e2345519cf39b0a0e29 (diff)
global: Replace deprecated usage of `ioutil.ReadFile()`
With Go 1.16, the ioutil package was deprecated. Replace our usage of `ioutil.ReadFile()` with `os.ReadFile()` to adapt accordingly.
Diffstat (limited to 'cmd/gitaly-wrapper')
-rw-r--r--cmd/gitaly-wrapper/main.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/cmd/gitaly-wrapper/main.go b/cmd/gitaly-wrapper/main.go
index 3ac422070..3fc315b3c 100644
--- a/cmd/gitaly-wrapper/main.go
+++ b/cmd/gitaly-wrapper/main.go
@@ -2,7 +2,6 @@ package main
import (
"fmt"
- "io/ioutil"
"os"
"os/exec"
"os/signal"
@@ -144,7 +143,7 @@ func forwardSignals(gitaly *os.Process, log *logrus.Entry) {
}
func getPid() (int, error) {
- data, err := ioutil.ReadFile(pidFile())
+ data, err := os.ReadFile(pidFile())
if err != nil {
return 0, err
}