etcd3 icon indicating copy to clipboard operation
etcd3 copied to clipboard

ILeaseTimeToLiveResponse returns an empty array of keys

Open shcorya opened this issue 2 years ago • 0 comments

(async () => {
  const lease = client.lease(3600);
  let leasedKey = await lease.put ('/leased-key').value ('value');
  let leasedGet = await client.get ('/leased-key').exec ();
  console.log ('leasedKey:', leasedKey);
  console.log ('leasedGet:', leasedGet);
  const leaseId = leasedGet.kvs[0].lease;
  console.log ('leasettl:', await client.leaseClient.leaseTimeToLive ({'ID': leaseId}))
}) ();

There is a key attached to the lease, but the ILeaseTimeToLiveResponse returns an empty array of keys.

shcorya avatar Jun 20 '23 20:06 shcorya