Skip to content

Conversation

@Vimarsh-98
Copy link

I applied a singleton pattern.
The reason I chose singleton is because location/init.py makes use of both utils/countries.py and utils/population.py. I combined the two in one class and created a single instance and this instance is shared to all clients.
How I did it:
I added a singleton pattern in utils/countries_population.py

@Kilo59 Kilo59 closed this Aug 21, 2021
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.

2 participants