Add comment for serve_tcp

This commit is contained in:
mhchia 2020-02-04 17:45:56 +08:00
parent 857bb34f4e
commit 89338914d3
No known key found for this signature in database
GPG Key ID: 389EFBEA1362589A

View File

@ -38,6 +38,7 @@ class TCPListener(IListener):
host: str,
task_status: TaskStatus[Sequence[trio.SocketListener]] = None,
) -> None:
"""Just a proxy function to add logging here."""
logger.debug("serve_tcp %s %s", host, port)
await trio.serve_tcp(handler, port, host=host, task_status=task_status)