refactor(__main__.py): use Client
This commit is contained in:
@@ -3,7 +3,7 @@ from __future__ import annotations
|
|||||||
|
|
||||||
import logging as lg
|
import logging as lg
|
||||||
|
|
||||||
from judas_client.connector import Connector
|
from judas_client import Client
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
lg.basicConfig(
|
lg.basicConfig(
|
||||||
@@ -12,5 +12,5 @@ if __name__ == "__main__":
|
|||||||
)
|
)
|
||||||
logger = lg.getLogger(__name__)
|
logger = lg.getLogger(__name__)
|
||||||
|
|
||||||
connector = Connector("127.0.0.1", 3692)
|
client = Client(server_host="localhost", server_port=3692)
|
||||||
connector.run()
|
client.run()
|
||||||
|
|||||||
Reference in New Issue
Block a user