Merge branch 'develop' into neilalexander/refactor

This commit is contained in:
Neil Alexander 2022-08-06 15:23:44 +01:00 committed by GitHub
commit dd66e8a9c9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 14 additions and 15 deletions

View file

@ -4,7 +4,7 @@ import (
"context"
"crypto/ed25519"
"fmt"
"io/ioutil"
"io"
"net"
"net/url"
"os"
@ -67,7 +67,7 @@ func New(secret ed25519.PrivateKey, opts ...SetupOption) (*Core, error) {
c._applyOption(opt)
}
if c.log == nil {
c.log = log.New(ioutil.Discard, "", 0)
c.log = log.New(io.Discard, "", 0)
}
c.proto.init(c)
if err := c.links.init(c); err != nil {