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

Refactor tbc as domain service #6717

Merged
merged 3 commits into from
Feb 13, 2024
Merged

Conversation

Rotorsoft
Copy link
Contributor

Link to Issue

Closes: #6713

Description of Changes

  • Refactor tbc from class to domain service function
  • Reorganize code inside tbc folder
  • Rename imports

Copy link
Contributor

@rbennettcw rbennettcw left a comment

Choose a reason for hiding this comment

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

Looks like we're replacing the instance pattern with a singleton pattern? It definitely simplifies things. I think I recall that the DB models can also be accessed from anywhere via singleton?

@Rotorsoft
Copy link
Contributor Author

Actually this is not a singleton, more like a domain service utility/method that uses the cache singleton.

We can probably do the same with ban cache... models is a bit different and will probably evolve into a repository pattern.

@Rotorsoft Rotorsoft merged commit efea281 into master Feb 13, 2024
6 of 7 checks passed
@Rotorsoft Rotorsoft deleted the rotorsoft/6713.refactor-tbc branch February 13, 2024 21:41
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.

Refactor token balance cache as a domain service
3 participants