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

Don't assign to ::Timer #1227

Merged
merged 1 commit into from Dec 31, 2020
Merged

Don't assign to ::Timer #1227

merged 1 commit into from Dec 31, 2020

Conversation

bpo
Copy link
Contributor

@bpo bpo commented Dec 31, 2020

Description

The change in 1595e6f moved the definition of Timer out of the Faraday module definition so that it was being defined in the root namespace. I don't think that was the intention of #1205 where that patch was introduced.

This changes the definition from ::Timer to ::Faraday::Timer.

I discovered this when a separately defined ::Timer in my app was overridden in Faraday v1.2.0

The change in 1595e6f moved the definition of Timer out of the module
definition so that the global ::Timer was mistakenly being defined.
Copy link
Member

@iMacTia iMacTia left a comment

Choose a reason for hiding this comment

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

You're absolutely right @bpo!
Thanks for catching and fixing this 🎉

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