Skip to content

Commit

Permalink
p2p: remove unused argument 'flags' (ethereum#29132)
Browse files Browse the repository at this point in the history
  • Loading branch information
yasyzb authored Mar 4, 2024
1 parent 00905f7 commit a732ad0
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 @@ -937,7 +937,7 @@ func (srv *Server) SetupConn(fd net.Conn, flags connFlag, dialDest *enode.Node)
c.transport = srv.newTransport(fd, dialDest.Pubkey())
}

err := srv.setupConn(c, flags, dialDest)
err := srv.setupConn(c, dialDest)
if err != nil {
if !c.is(inboundConn) {
markDialError(err)
Expand All @@ -947,7 +947,7 @@ func (srv *Server) SetupConn(fd net.Conn, flags connFlag, dialDest *enode.Node)
return err
}

func (srv *Server) setupConn(c *conn, flags connFlag, dialDest *enode.Node) error {
func (srv *Server) setupConn(c *conn, dialDest *enode.Node) error {
// Prevent leftover pending conns from entering the handshake.
srv.lock.Lock()
running := srv.running
Expand Down

0 comments on commit a732ad0

Please sign in to comment.