diff --git a/cmd/serve/main.go b/cmd/serve/main.go index 1b2a83d4..dd8956d4 100644 --- a/cmd/serve/main.go +++ b/cmd/serve/main.go @@ -3,7 +3,6 @@ package serve import ( "context" "fmt" - "io" "net" "net/http" "net/netip" @@ -302,7 +301,7 @@ func (cmd *servecmd) Run() { // ReadConfig reads the config file from disk if specified and overrides any env vars or cmdline options func (cmd *servecmd) ReadConfig() *config.AppConfig { if cmd.ConfigFilePath != "" { - if b, err := io.ReadFile(cmd.ConfigFilePath); err == nil { + if b, err := os.ReadFile(cmd.ConfigFilePath); err == nil { if err := yaml.Unmarshal(b, &cmd.AppConfig); err != nil { logrus.Fatal(errors.Wrap(err, "failed to bind configuration file")) }