fix: load_rpc_client
continuous-integration/drone/push Build is passing Details

This commit is contained in:
BryantHe 2023-10-26 12:39:07 +08:00
parent bffcd78f99
commit 35ffe3554c
1 changed files with 4 additions and 1 deletions

View File

@ -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():