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

`socket': Object#timeout is deprecated, use Timeout.timeout instead #12

Open
Rajesh1213 opened this issue Apr 19, 2018 · 2 comments
Open

Comments

@Rajesh1213
Copy link

/ruby/2.4.0/gems/carrot-1.2.0/lib/carrot/amqp/server.rb:128:in `socket': Object#timeout is deprecated, use Timeout.timeout instead.

Hi I have upgraded my sinatra application ruby from 1.9.3 to 2.4.3. I have started getting this error.
Can you please let me know how can i fix this ?

@Rajesh1213
Copy link
Author

Can someone look into this issue please?

@terence-boyle
Copy link

https://github.com/ruby/timeout/blob/4893cde0eda321448a1a86487ac9b571f6c35727/lib/timeout.rb#L80

Note that this is both a method of module Timeout, so you can include
Timeout
into your classes so they have a #timeout method, as well as
a module method, so you can call it directly as Timeout.timeout().

either need to include the module or update line 128 to read Timeout.timeout

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

No branches or pull requests

2 participants