Skip to content
This repository was archived by the owner on Jun 27, 2025. It is now read-only.

Conversation

juliangruber
Copy link
Member

Closes #13

@juliangruber juliangruber requested a review from bajtos October 11, 2024 09:58
@juliangruber
Copy link
Member Author

We need to support concurrent writes as it's possible for spark-evaluate to increase scheduled rewards at the same time as POST /paid (called from CLI) will decrease them

@juliangruber
Copy link
Member Author

@bajtos hindsight please

@juliangruber juliangruber merged commit 5f29d26 into main Oct 13, 2024
6 checks passed
@juliangruber juliangruber deleted the fix/bigint branch October 13, 2024 08:58
Copy link
Member

@bajtos bajtos left a comment

Choose a reason for hiding this comment

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

I don't have enough bandwidth to review this change in depth. I don't see any obvious issues.

return json(res, {})
}

const scheduledRewardsDelta = body.scores.map(score => {
Copy link
Member

Choose a reason for hiding this comment

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

I find it a bit surprising that a variable with singular name ("...Delta") is storing an array of values.

scheduledRewardsDeltas would be a better name (IMO).

Copy link
Member Author

Choose a reason for hiding this comment

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

+1 db9a5aa

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.

Support big integers

2 participants