Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Andrew Jackson (Ajax) <snadrus@gmail.com>
  • Loading branch information
magik6k and snadrus authored Jul 22, 2024
1 parent 04fae33 commit da2472b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
5 changes: 1 addition & 4 deletions web/static/deals/pending-deals.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,7 @@ class PendingDeals extends LitElement {
this.requestUpdate();

// Poll for updates
setInterval(async () => {
this.data = await RPCCall('DealsPending');
this.requestUpdate();
}, 3000);
setTimeout(this.loadData, 3000);
}

async sealNow(entry) {
Expand Down
5 changes: 1 addition & 4 deletions web/static/snap/upgrade-sectors.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,7 @@ class UpgradeSectors extends LitElement {
this.requestUpdate();

// Poll for updates
setInterval(async () => {
this.data = await RPCCall('UpgradeSectors');
this.requestUpdate();
}, 3000);
setTimeout(this.loadData, 3000);
}

render() {
Expand Down

0 comments on commit da2472b

Please sign in to comment.