Simplify API #488
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
parasitepool/para!488
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "simplify-api"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
LGTM
@ -338,2 +337,2 @@const lastShare = w.last_share != null ? `${w.last_share}s ago` : '-';const bestShare = formatDifficulty(w.best_share);return workers.sort((a, b) => b.stats.hashrate_1m - a.stats.hashrate_1m).map(w => {const s = w.stats;name the helper var
statscould make remainder more readable.@ -130,20 +130,21 @@ async function refresh(signal) {copyable('upstream_hash_days', formatHashDays(upstream.hash_days), upstream.hash_days);rejectionWorkCopyable('upstream_rejected_work', upstream.accepted_work, upstream.rejected_work);const s = data.stats;same as above in terms of readability