feat: flask_nameko add params 2

This commit is contained in:
BryantHe 2023-10-26 14:39:49 +08:00
parent 59815cbc74
commit 5df773c958
1 changed files with 2 additions and 2 deletions

View File

@ -60,10 +60,10 @@ class LazyServiceProxy(object):
class FlaskPooledClusterRpcProxy(PooledClusterRpcProxy): class FlaskPooledClusterRpcProxy(PooledClusterRpcProxy):
def __init__(self, app=None, connect_on_method_call=True): def __init__(self, app=None, connect_on_method_call=True, extra_config=None):
self._connect_on_method_call = connect_on_method_call self._connect_on_method_call = connect_on_method_call
if app: if app:
self.init_app(app) self.init_app(app, extra_config=extra_config)
def init_app(self, app, extra_config=None): def init_app(self, app, extra_config=None):
config = dict() config = dict()