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

README resolver addresses_for example improvements #16

Open
tadman opened this issue Sep 25, 2020 · 0 comments
Open

README resolver addresses_for example improvements #16

tadman opened this issue Sep 25, 2020 · 0 comments

Comments

@tadman
Copy link

tadman commented Sep 25, 2020

The example given in the README is missing which require headers are necessary. Based on the errors you get when trying to run it bare the following would make sense:

require 'async'
require 'async/io/endpoint'
require 'async/dns/resolver'

Yet this results in:NoMethodError: undefined method each' for Async::IO::Endpoint:Class`

What's missing is:

require 'async'
require 'async/io'
require 'async/dns/resolver'

Ideally Async::DNS would just load whatever it needs as dependencies, at least if that doesn't cause any trouble. It'd be nice if require 'async/dns' or require 'async/dns/resolver' was sufficient.

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

1 participant