mirror of
https://github.com/BOSWatch/BW3-Core.git
synced 2025-12-06 07:12:04 +01:00
refactoring in routerManager
This commit is contained in:
parent
c07237f2ea
commit
277cd9db12
|
|
@ -34,7 +34,7 @@ class RouterManager:
|
|||
self._startTime = int(time.time())
|
||||
|
||||
# if there is an error, router list would be empty (see tmp variable)
|
||||
def buildRouter(self, config):
|
||||
def buildRouters(self, config):
|
||||
"""!Initialize Routers from given config file
|
||||
|
||||
@param config: instance of ConfigYaml class
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@ bcServer = None
|
|||
|
||||
try:
|
||||
bwRoutMan = RouterManager()
|
||||
if not bwRoutMan.buildRouter(bwConfig):
|
||||
if not bwRoutMan.buildRouters(bwConfig):
|
||||
logging.fatal("Error while building routers")
|
||||
exit(1)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue