Skip to content

Commit

Permalink
[Greendns] Replace deprecated resolver.query by resolver.resolve
Browse files Browse the repository at this point in the history
  • Loading branch information
4383 committed Dec 15, 2023
1 parent d78f8f6 commit ec88ef2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eventlet/support/greendns.py
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ def end():
# https://github.com/nameko/nameko/issues/392
# https://github.com/eventlet/eventlet/issues/363
if len(qname) == 1:
step(self._resolver.query, qname.concatenate(dns.name.root),
step(self._resolver.resolve, qname.concatenate(dns.name.root),

Check warning on line 412 in eventlet/support/greendns.py

View check run for this annotation

Codecov / codecov/patch

eventlet/support/greendns.py#L412

Added line #L412 was not covered by tests
rdtype, rdclass, tcp, source, raise_on_no_answer=False)

return end()
Expand Down

0 comments on commit ec88ef2

Please sign in to comment.