Change instance of ConfigurationManager().get to ConfigurationManager.get
parent
5ddf1250ab
commit
c8c5afdeaf
|
@ -33,7 +33,7 @@ class Api(object):
|
|||
|
||||
def __init__(self, path):
|
||||
self.path = path
|
||||
config = ConfigurationManager().get()
|
||||
config = ConfigurationManager.get()
|
||||
config_server = config.get("server")
|
||||
self.url = config_server.get("url")
|
||||
self.version = config_server.get("version")
|
||||
|
|
|
@ -277,7 +277,7 @@ class RecognizerLoop(EventEmitter):
|
|||
while self.state.running:
|
||||
try:
|
||||
time.sleep(1)
|
||||
if self._config_hash != hash(str(ConfigurationManager()
|
||||
if self._config_hash != hash(str(ConfigurationManager
|
||||
.get())):
|
||||
LOG.debug('Config has changed, reloading...')
|
||||
self.reload()
|
||||
|
|
Loading…
Reference in New Issue