|
@@ -512,8 +512,8 @@ class OutboundClient:
|
|
|
# print('come in whitelist')
|
|
|
# return
|
|
|
|
|
|
- call_id = 'C' + str(self.server.snowflake.next_id())
|
|
|
- new_device_id = 'D' + str(self.server.snowflake.next_id())
|
|
|
+ call_id = 'C' + str(Snowflake().next_id())
|
|
|
+ new_device_id = 'D' + str(Snowflake().next_id())
|
|
|
|
|
|
kwargs = json.loads(info.serialize('json'))
|
|
|
destination = self.server.agent.register(**kwargs)
|
|
@@ -550,7 +550,6 @@ class OutboundClient:
|
|
|
def __init__(self, server_address, RequestHandlerClass, agent, logger):
|
|
|
self.agent = agent
|
|
|
self.logger = logger
|
|
|
- self.snowflake = Snowflake()
|
|
|
super().__init__(server_address, RequestHandlerClass)
|
|
|
|
|
|
def start(self, HOST='0.0.0.0', PORT=8084, agent=None, logger=None):
|