diff options
author | Bob Halley <halley@dnspython.org> | 2020-07-27 14:24:18 -0700 |
---|---|---|
committer | Bob Halley <halley@dnspython.org> | 2020-07-27 14:24:18 -0700 |
commit | 239bb54b3ac4761921470d6f1962a05ccf69db00 (patch) | |
tree | 368676bc80bbac34fc82dca01549152dc737e0ed /dns/asyncresolver.py | |
parent | cb49bfc57cbf68f0e31f0c2f541eb64a06463eca (diff) | |
download | dnspython-239bb54b3ac4761921470d6f1962a05ccf69db00.tar.gz |
Add missing lifetime parameter to dns.asyncresolver.resolve() [#555]
Diffstat (limited to 'dns/asyncresolver.py')
-rw-r--r-- | dns/asyncresolver.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/dns/asyncresolver.py b/dns/asyncresolver.py index 0aaeb9c..b0af934 100644 --- a/dns/asyncresolver.py +++ b/dns/asyncresolver.py @@ -210,7 +210,7 @@ def reset_default_resolver(): async def resolve(qname, rdtype=dns.rdatatype.A, rdclass=dns.rdataclass.IN, tcp=False, source=None, raise_on_no_answer=True, - source_port=0, search=None, backend=None): + source_port=0, lifetime=None, search=None, backend=None): """Query nameservers asynchronously to find the answer to the question. This is a convenience function that uses the default resolver @@ -222,7 +222,8 @@ async def resolve(qname, rdtype=dns.rdatatype.A, rdclass=dns.rdataclass.IN, return await get_default_resolver().resolve(qname, rdtype, rdclass, tcp, source, raise_on_no_answer, - source_port, search, backend) + source_port, lifetime, search, + backend) async def resolve_address(ipaddr, *args, **kwargs): |