Browse Source

转人工测试,fix

774056846 4 months ago
parent
commit
d9c7650ea9
1 changed files with 2 additions and 3 deletions
  1. 2 3
      src/core/callcenter/esl/client.py

+ 2 - 3
src/core/callcenter/esl/client.py

@@ -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):