Skip to content

Ensure owner lease in owner lease refresh loop #1072

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

Merged
merged 3 commits into from
Aug 1, 2018

Conversation

gsoltis
Copy link

@gsoltis gsoltis commented Jul 31, 2018

Add back call to ensureOwnerLease.

const store = txn.store<DbOwnerKey, DbOwner>(DbOwner.store);
return store.put('owner', new DbOwner(this.ownerId, Date.now()));
this.ensureOwnerLease(txn).next(() => {
const store = txn.store<DbOwnerKey, DbOwner>(DbOwner.store);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be return this.ensureOwnerLease(....

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh yes, it's an easy change, I'll just let the CI run while I commute home...

Ok it's fixed now.

@gsoltis gsoltis merged commit e4ec036 into master Aug 1, 2018
@gsoltis gsoltis deleted the gsoltis/ensure_owner_lease branch August 1, 2018 18:22
@firebase firebase locked and limited conversation to collaborators Oct 17, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants