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:
Blake Harnden 2019-10-17 11:10:59 -07:00
parent 0ef06a0167
commit e94a6d1afa
14 changed files with 196 additions and 172 deletions

View file

@ -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 = []