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

Add common Ranking protocol #19

Merged
merged 6 commits into from
Oct 11, 2023
Merged

Conversation

shutterbug2000
Copy link
Collaborator

Tested on both Ultimate NES Remix and DKC:TF without issues

Tested on both Ultimate NES Remix and DKC:TF without issues
ranking/get_cached_top_x_ranking.go Outdated Show resolved Hide resolved
ranking/protocol.go Outdated Show resolved Hide resolved
ranking/get_cached_top_x_ranking.go Outdated Show resolved Hide resolved
ranking/get_ranking.go Show resolved Hide resolved
ranking/get_cached_top_x_rankings.go Outdated Show resolved Hide resolved
ranking/get_cached_top_x_rankings.go Outdated Show resolved Hide resolved
Copy link
Member

@jonbarrow jonbarrow left a comment

Choose a reason for hiding this comment

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

Dani got most of the stuff I had to say already

ranking/get_common_data.go Outdated Show resolved Hide resolved
rmcResponse.SetError(nex.Errors.Ranking.NotFound)
}

if err == nil && totalCount != 0 {
Copy link
Member

Choose a reason for hiding this comment

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

With Dani's suggestion to change lines 25 and 29 into returns, this check would no longer be needed so long as the check on line 28 is split into 2 checks

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'm a bit confused by "so long as the check on line 28 is split into 2 checks" :p

ranking/get_cached_top_x_ranking.go Outdated Show resolved Hide resolved
ranking/upload_common_data.go Outdated Show resolved Hide resolved
ranking/protocol.go Outdated Show resolved Hide resolved
ranking/get_common_data.go Outdated Show resolved Hide resolved
Copy link
Member

@DaniElectra DaniElectra left a comment

Choose a reason for hiding this comment

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

some minor format changes, otherwise looks good. I will wait for Jon's final review before merging

ranking/get_common_data.go Outdated Show resolved Hide resolved
ranking/get_cached_top_x_ranking.go Outdated Show resolved Hide resolved
ranking/get_cached_top_x_rankings.go Outdated Show resolved Hide resolved
@jonbarrow
Copy link
Member

LGTM 👍

@jonbarrow jonbarrow merged commit 3b4ab59 into PretendoNetwork:main Oct 11, 2023
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

Successfully merging this pull request may close these issues.

3 participants