replace ioutil

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
Jens Langhammer 2023-06-23 18:45:31 +02:00
parent 18db59ad2d
commit 241059f56b
No known key found for this signature in database
1 changed files with 1 additions and 2 deletions

View File

@ -2,7 +2,6 @@ package gounicorn
import (
"fmt"
"io/ioutil"
"net/http"
"os"
"os/exec"
@ -142,7 +141,7 @@ func (g *GoUnicorn) Restart() {
return
}
newPidB, err := ioutil.ReadFile(newPidFile)
newPidB, err := os.ReadFile(newPidFile)
if err != nil {
g.log.WithError(err).Warning("failed to find the new gunicorn process, aborting")
return