Skip to content

Commit

Permalink
p2p: access embedded fields of Server directly (ethereum#27078)
Browse files Browse the repository at this point in the history
  • Loading branch information
joohhnnn authored and devopsbo3 committed Nov 10, 2023
1 parent 5e4d726 commit 59f6ae9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions p2p/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit 59f6ae9

Please sign in to comment.