From 523a426972de566f1ef9e06f911d5748179ebc86 Mon Sep 17 00:00:00 2001 From: Michael Pilosov Date: Sun, 19 Mar 2023 12:30:27 -0600 Subject: [PATCH] cleanup --- example_block/eden-server/announce.py | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/example_block/eden-server/announce.py b/example_block/eden-server/announce.py index 0fc476c..d3751a7 100644 --- a/example_block/eden-server/announce.py +++ b/example_block/eden-server/announce.py @@ -20,15 +20,11 @@ def get_ip_address(): sio = socketio.AsyncClient() async def _announce_server(**kwargs): - HOST_SERVER_IP = "0.0.0.0" - HOST_SERVER_PORT = 4999 - SERVER_NAME = "server_1" - SERVER_PORT = 8000 - SERVER_NAME = kwargs.get("name", SERVER_NAME) + SERVER_NAME = kwargs.get("name", "server_1") SERVER_IP = kwargs.get("ip", get_ip_address()) - SERVER_PORT = kwargs.get("port", SERVER_PORT) - HOST_SERVER_IP = kwargs.get("host_ip", HOST_SERVER_IP) - HOST_SERVER_PORT = kwargs.get("host_port", HOST_SERVER_PORT) + SERVER_PORT = kwargs.get("port", 8000) + HOST_SERVER_IP = kwargs.get("host_ip", "0.0.0.0") + HOST_SERVER_PORT = kwargs.get("host_port", 5000) @sio.event async def connect():