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

This commit is contained in:
yzb 2024-03-04 17:16:05 +08:00 committed by GitHub
parent 00905f7dc4
commit a732ad0364
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -937,7 +937,7 @@ func (srv *Server) SetupConn(fd net.Conn, flags connFlag, dialDest *enode.Node)
c.transport = srv.newTransport(fd, dialDest.Pubkey()) c.transport = srv.newTransport(fd, dialDest.Pubkey())
} }
err := srv.setupConn(c, flags, dialDest) err := srv.setupConn(c, dialDest)
if err != nil { if err != nil {
if !c.is(inboundConn) { if !c.is(inboundConn) {
markDialError(err) markDialError(err)
@ -947,7 +947,7 @@ func (srv *Server) SetupConn(fd net.Conn, flags connFlag, dialDest *enode.Node)
return err 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. // Prevent leftover pending conns from entering the handshake.
srv.lock.Lock() srv.lock.Lock()
running := srv.running running := srv.running