From 5df773c95812048704e3506f2465e4e1fea43d2d Mon Sep 17 00:00:00 2001 From: BryantHe Date: Thu, 26 Oct 2023 14:39:49 +0800 Subject: [PATCH] feat: flask_nameko add params 2 --- chassis/flask_nameko/proxies.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chassis/flask_nameko/proxies.py b/chassis/flask_nameko/proxies.py index 24931b2..25f7c7e 100644 --- a/chassis/flask_nameko/proxies.py +++ b/chassis/flask_nameko/proxies.py @@ -60,10 +60,10 @@ class LazyServiceProxy(object): 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 if app: - self.init_app(app) + self.init_app(app, extra_config=extra_config) def init_app(self, app, extra_config=None): config = dict()