mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 15:03:34 +00:00
zephyr: Remove Zephyr mirroring support.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
fb13de4e10
commit
40a022dcc3
@@ -12,8 +12,6 @@ from unittest import mock
|
||||
from unittest.mock import patch
|
||||
|
||||
import boto3.session
|
||||
import dns.rdtypes.ANY.TXT
|
||||
import dns.resolver
|
||||
import fakeldap
|
||||
import ldap
|
||||
import orjson
|
||||
@@ -796,16 +794,3 @@ def ratelimit_rule(
|
||||
def consume_response(response: HttpResponseBase) -> None:
|
||||
assert response.streaming
|
||||
collections.deque(response, maxlen=0)
|
||||
|
||||
|
||||
def dns_txt_answer(name_str: str, txt: str) -> dns.resolver.Answer:
|
||||
name = dns.name.from_text(name_str)
|
||||
rdclass = dns.rdataclass.IN
|
||||
rdtype = dns.rdatatype.TXT
|
||||
response = dns.message.make_query(
|
||||
name, rdtype, rdclass, flags=dns.flags.QR | dns.flags.RA | dns.flags.RD
|
||||
)
|
||||
response.find_rrset(dns.message.ANSWER, name, rdclass, rdtype, create=True).add(
|
||||
dns.rdtypes.ANY.TXT.TXT(rdclass, rdtype, txt)
|
||||
)
|
||||
return dns.resolver.Answer(name, rdtype, rdclass, response)
|
||||
|
||||
Reference in New Issue
Block a user