p2p: access embedded fields of Server directly (#27078)

pull/27113/head
joohhnnn 2 years ago committed by GitHub
parent 5e4d726e2a
commit b1972627d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      p2p/server.go

@ -443,7 +443,7 @@ func (srv *Server) Start() (err error) {
return errors.New("server already running")
}
srv.running = true
srv.log = srv.Config.Logger
srv.log = srv.Logger
if srv.log == nil {
srv.log = log.Root()
}
@ -501,7 +501,7 @@ func (srv *Server) setupLocalNode() error {
sort.Sort(capsByNameAndVersion(srv.ourHandshake.Caps))
// Create the local node.
db, err := enode.OpenDB(srv.Config.NodeDatabase)
db, err := enode.OpenDB(srv.NodeDatabase)
if err != nil {
return err
}

Loading…
Cancel
Save