Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ILeaseTimeToLiveResponse returns an empty array of keys #187

Open
shcorya opened this issue Jun 20, 2023 · 0 comments
Open

ILeaseTimeToLiveResponse returns an empty array of keys #187

shcorya opened this issue Jun 20, 2023 · 0 comments

Comments

@shcorya
Copy link

shcorya commented Jun 20, 2023

(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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant