separated distributed session logic into its own class to help reduce session.py size as it is already too big
This commit is contained in:
parent
0ef06a0167
commit
e94a6d1afa
14 changed files with 196 additions and 172 deletions
|
@ -1192,9 +1192,9 @@ class CoreHandler(socketserver.BaseRequestHandler):
|
|||
for server in server_list:
|
||||
server_items = server.split(":")
|
||||
name, host, _ = server_items[:3]
|
||||
self.session.add_distributed(name, host)
|
||||
self.session.distributed.add_server(name, host)
|
||||
elif message_type == ConfigFlags.RESET:
|
||||
self.session.shutdown_distributed()
|
||||
self.session.distributed.shutdown()
|
||||
|
||||
def handle_config_services(self, message_type, config_data):
|
||||
replies = []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue