mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-28 14:15:06 +03:00
Fix ioutil output for sim
This commit is contained in:
parent
9920b556a0
commit
b252854d21
1 changed files with 4 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
|||
package yggdrasil
|
||||
|
||||
// import "io/ioutil"
|
||||
import "io/ioutil"
|
||||
import "log"
|
||||
import "regexp"
|
||||
import "net"
|
||||
|
@ -47,7 +47,9 @@ func (c *Core) init(bpub *boxPubKey,
|
|||
// Start launches goroutines that depend on structs being set up
|
||||
// This is pretty much required to completely avoid race conditions
|
||||
util_initByteStore()
|
||||
// c.log = log.New(ioutil.Discard, "", 0)
|
||||
if c.log == nil {
|
||||
c.log = log.New(ioutil.Discard, "", 0)
|
||||
}
|
||||
c.boxPub, c.boxPriv = *bpub, *bpriv
|
||||
c.sigPub, c.sigPriv = *spub, *spriv
|
||||
c.admin.core = c
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue