p2p: access embedded fields of Server directly (#27078)
This commit is contained in:
parent
5e4d726e2a
commit
b1972627d9
|
@ -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…
Reference in New Issue