p2p: remove unused argument 'flags' (#29132)

pull/29162/head
yzb 8 months ago committed by GitHub
parent 00905f7dc4
commit a732ad0364
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      p2p/server.go

@ -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)
@ -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

Loading…
Cancel
Save