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

make logging under control #3

Open
wants to merge 5 commits into
base: rabbitmq_synchro
Choose a base branch
from
Open

Conversation

rubygitflow
Copy link
Owner

No description provided.

@@ -12,7 +12,7 @@ def geocode(city)
end

def data
@data ||= load_data!
@@data ||= load_data!
Copy link

Choose a reason for hiding this comment

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

Вообще, переменные класса лучше не использовать из-за их побочных эффектов. Если у нас модуль Geocoder делает extend self и будет вызываться из разных трэдов, в этом нет проблемы, потому что данные будут только вычитываться и race condition здесь не страшен.

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