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

Update worker to use new leaderboard #65

Merged
merged 5 commits into from
May 19, 2021

Conversation

arthur29
Copy link
Contributor

WHY

Currently worker directly connect to redis to execute your operations, and it still using the old Lua script. This PR proposes to move this flow to use leaderboard instead of actual approach.

WHAT WAS DONE

  • Move config from testing to a proper package
  • Create LeaderboardWithoutMemberToExpireError error on database
  • Add ZRangeByScore to Redis
  • Change SRem to accept more than one member to remove
  • Create database Expire interface and implement it on Redis

@arthur29 arthur29 force-pushed the update_worker_to_use_new_leaderboard branch from a0c7d5e to de96bdd Compare May 18, 2021 14:29
arthur29 and others added 2 commits May 19, 2021 15:26
Co-authored-by: Matheus Nogueira <matheus.nogueira2008@gmail.com>
@arthur29 arthur29 merged commit 8089dc5 into master May 19, 2021
@arthur29 arthur29 deleted the update_worker_to_use_new_leaderboard branch May 19, 2021 18:37
mathnogueira added a commit that referenced this pull request May 19, 2021
Co-authored-by: Arthur Nogueira Gonçalves <arthur.nogueira@wildlifestudios.com>
Co-authored-by: Matheus Nogueira <matheus.nogueira2008@gmail.com>
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.

None yet

2 participants