clientv3: fix lease keepalive duration
parent
23b5a29101
commit
4274db46f2
|
@ -416,7 +416,7 @@ func (l *lessor) recvKeepAlive(resp *pb.LeaseKeepAliveResponse) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// send update to all channels
|
// send update to all channels
|
||||||
nextKeepAlive := time.Now().Add(1 + time.Duration(karesp.TTL/3)*time.Second)
|
nextKeepAlive := time.Now().Add(time.Duration(karesp.TTL/3+1) * time.Second)
|
||||||
ka.deadline = time.Now().Add(time.Duration(karesp.TTL) * time.Second)
|
ka.deadline = time.Now().Add(time.Duration(karesp.TTL) * time.Second)
|
||||||
for _, ch := range ka.chs {
|
for _, ch := range ka.chs {
|
||||||
select {
|
select {
|
||||||
|
|
Loading…
Reference in New Issue