mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-28 07:36:44 +00:00
replace wrong connecitonId variable
This commit is contained in:
parent
4c828c98bc
commit
dbd18558ec
1 changed files with 2 additions and 2 deletions
|
|
@ -1152,7 +1152,7 @@ func (p *PortalProtocol) handleFindContent(id enode.ID, addr *net.UDPAddr, reque
|
|||
var connectCtx context.Context
|
||||
var cancel context.CancelFunc
|
||||
defer func() {
|
||||
p.connIdGen.Remove(connId)
|
||||
p.connIdGen.Remove(connectionId)
|
||||
if conn == nil {
|
||||
return
|
||||
}
|
||||
|
|
@ -1284,7 +1284,7 @@ func (p *PortalProtocol) handleOffer(id enode.ID, addr *net.UDPAddr, request *po
|
|||
var connectCtx context.Context
|
||||
var cancel context.CancelFunc
|
||||
defer func() {
|
||||
p.connIdGen.Remove(connId)
|
||||
p.connIdGen.Remove(connectionId)
|
||||
if conn == nil {
|
||||
return
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue