From 35ffe3554cc553840fa42c0789f3f3eda33d410d Mon Sep 17 00:00:00 2001 From: BryantHe Date: Thu, 26 Oct 2023 12:39:07 +0800 Subject: [PATCH] fix: load_rpc_client --- app/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/__init__.py b/app/__init__.py index 456f927..8f04000 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -31,7 +31,10 @@ def load_rpc_client(apiflask_app): apiflask_app.config.update(dict( NAMEKO_AMQP_URI=str(Config.RABBITMQ_URI) )) - rpc.init_app(apiflask_app) + rpc.init_app(apiflask_app, extra_config={ + 'INITIAL_CONNECTIONS': 4, + 'MAX_CONNECTIONS': 30, + }) def create_app():