Don't use deprecated functions from io/ioutil

This commit is contained in:
Ingo Oppermann
2022-08-18 10:27:33 +03:00
parent 5bd04817cc
commit 6802830c62
16 changed files with 41 additions and 48 deletions

View File

@@ -5,7 +5,6 @@ import (
"crypto/tls"
"fmt"
"io"
"io/ioutil"
golog "log"
gonet "net"
gohttp "net/http"
@@ -120,7 +119,7 @@ func New(configpath string, logwriter io.Writer) (API, error) {
a.log.writer = logwriter
if a.log.writer == nil {
a.log.writer = ioutil.Discard
a.log.writer = io.Discard
}
a.errorChan = make(chan error, 1)