Fixes README.md in #32.
Signed-off-by: Tao He <linzhu.ht@alibaba-inc.com>
This commit is contained in:
parent
b27f6963aa
commit
cd6e85dacf
|
|
@ -411,7 +411,7 @@ The remaining time-to-live of a lease can be inspected by
|
||||||
Keep alive for leases is implemented using a seperate class `KeepAlive`, which can be used as:
|
Keep alive for leases is implemented using a seperate class `KeepAlive`, which can be used as:
|
||||||
|
|
||||||
```c++
|
```c++
|
||||||
etcd::KeepAlive keepalive(etcd, lease_id, ttl);
|
etcd::KeepAlive keepalive(etcd, ttl, lease_id);
|
||||||
```
|
```
|
||||||
|
|
||||||
It will perform a periodly keep-alive action before it is cancelled explicitly, or destructed implicitly.
|
It will perform a periodly keep-alive action before it is cancelled explicitly, or destructed implicitly.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue