No longer use ioutil which is deprecated

This commit is contained in:
Neil Alexander 2022-08-06 15:21:21 +01:00
parent d5c0dc9bee
commit 16b8149052
3 changed files with 6 additions and 7 deletions

View file

@ -6,7 +6,7 @@ import (
"encoding/hex"
"errors"
"fmt"
"io/ioutil"
"io"
"net"
"net/url"
"time"
@ -48,7 +48,7 @@ func (c *Core) _init() error {
c.config.RLock()
defer c.config.RUnlock()
if c.log == nil {
c.log = log.New(ioutil.Discard, "", 0)
c.log = log.New(io.Discard, "", 0)
}
sigPriv, err := hex.DecodeString(c.config.PrivateKey)