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

DNS server basic implementation #211

Merged
merged 16 commits into from
Jun 4, 2024
4 changes: 1 addition & 3 deletions aiomisc/process_pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,7 @@ def _statistic_callback(
self._statistic.sum_time += loop.time() - start_time

def submit(self, *args: Any, **kwargs: Any) -> Future:
"""
Submit blocking function to the pool
"""
"""Submit blocking function to the pool"""
loop = asyncio.get_running_loop()
start_time = loop.time()
future = super().submit(*args, **kwargs)
Expand Down
14 changes: 14 additions & 0 deletions aiomisc/service/dns/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
from . import records
from .service import DNSServer, TCPDNSServer, UDPDNSServer
from .store import DNSStore
from .zone import DNSZone


__all__ = (
"DNSServer",
"DNSStore",
"DNSZone",
"TCPDNSServer",
"UDPDNSServer",
"records",
)
Loading
Loading