Skip to content

Commit

Permalink
change patch config update deep level (#835)
Browse files Browse the repository at this point in the history
* change patch config update deep level

* delete unused whitespace

* delete unused whitespace

* delete unused whitespace

---------

Co-authored-by: wujiasheng03 <[email protected]>
  • Loading branch information
noO0oOo0ob and wujiasheng03 authored Apr 1, 2024
1 parent 4349c24 commit 05f22b4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lyrebird/config/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,10 @@ def override_config_field(self, update_conf: dict):
if forbidden_modify_fields:
raise ConfigException(f'Config field cannot be modified: {forbidden_modify_fields}')

self.add_config(update_conf, type='api_patch', apply_now=True)
update_level = self.config.get('config.update_config.level', 1)

logger.debug(f'Need update config fields: {update_conf}')
self.config.update(update_conf)
self.add_config(update_conf, type='api_patch', level=update_level, apply_now=True)
logger.debug(f'Update done. config: {self.config}')

application.server['event'].publish('config_update', {'config_update' : {'data': update_conf}})
Expand Down
2 changes: 1 addition & 1 deletion lyrebird/version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
IVERSION = (2, 25, 4)
IVERSION = (2, 25, 5)
VERSION = ".".join(str(i) for i in IVERSION)
LYREBIRD = "Lyrebird " + VERSION

0 comments on commit 05f22b4

Please sign in to comment.