mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-17 17:33:47 +00:00
rename v5respTimeout->respTimeout
Signed-off-by: Chen Kai <281165273grape@gmail.com>
This commit is contained in:
parent
6078fe2adc
commit
b1e8a7cac0
1 changed files with 20 additions and 20 deletions
|
|
@ -69,7 +69,7 @@ type UDPv5 struct {
|
|||
log log.Logger
|
||||
clock mclock.Clock
|
||||
validSchemes enr.IdentityScheme
|
||||
v5respTimeout time.Duration
|
||||
respTimeout time.Duration
|
||||
|
||||
// misc buffers used during message handling
|
||||
logcontext []interface{}
|
||||
|
|
@ -157,7 +157,7 @@ func newUDPv5(conn UDPConn, ln *enode.LocalNode, cfg Config) (*UDPv5, error) {
|
|||
log: cfg.Log,
|
||||
validSchemes: cfg.ValidSchemes,
|
||||
clock: cfg.Clock,
|
||||
v5respTimeout: cfg.V5RespTimeout,
|
||||
respTimeout: cfg.V5RespTimeout,
|
||||
// channels into dispatch
|
||||
packetInCh: make(chan ReadPacket, 1),
|
||||
readNextCh: make(chan struct{}, 1),
|
||||
|
|
@ -576,7 +576,7 @@ func (t *UDPv5) startResponseTimeout(c *callV5) {
|
|||
timer mclock.Timer
|
||||
done = make(chan struct{})
|
||||
)
|
||||
timer = t.clock.AfterFunc(t.v5respTimeout, func() {
|
||||
timer = t.clock.AfterFunc(t.respTimeout, func() {
|
||||
<-done
|
||||
select {
|
||||
case t.respTimeoutCh <- &callTimeout{c, timer}:
|
||||
|
|
|
|||
Loading…
Reference in a new issue