Skip to content

Commit

Permalink
DNS server basic implementation (#211)
Browse files Browse the repository at this point in the history
* DNS server basic implementation WIP
* Fix GRPSService
  • Loading branch information
mosquito authored Jun 4, 2024
1 parent 9d80cb7 commit 96563db
Show file tree
Hide file tree
Showing 20 changed files with 3,033 additions and 656 deletions.
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

0 comments on commit 96563db

Please sign in to comment.