etcd-cpp-apiv3/etcd-cpp-apiv3

etcd::KeepAlive constructor bug

VV-hao opened this issue · 2 comments

VV-hao commented

当构造函数的参数lease_id指定为0或不指定时,库中的注释说运行时库会自动分配一个lease,但事实上没有自动分配id,id仍然是0.

Try client.leasekeepalive() as a workaround.

Closing as fixed in main.