From 18d265cecde6165f6581b050a967bd2e7cafb404 Mon Sep 17 00:00:00 2001 From: JianBo He Date: Thu, 12 May 2022 15:33:27 +0800 Subject: [PATCH] chore(gw): increase timeout to update gateway instance --- apps/emqx_gateway/src/emqx_gateway_insta_sup.erl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/emqx_gateway/src/emqx_gateway_insta_sup.erl b/apps/emqx_gateway/src/emqx_gateway_insta_sup.erl index 50b7433cf..a065ea8fd 100644 --- a/apps/emqx_gateway/src/emqx_gateway_insta_sup.erl +++ b/apps/emqx_gateway/src/emqx_gateway_insta_sup.erl @@ -87,7 +87,9 @@ update(Pid, Config) -> call(Pid, {update, Config}). call(Pid, Req) -> - gen_server:call(Pid, Req, 5000). + %% The large timeout aim to get the modified results of the dependent + %% resources + gen_server:call(Pid, Req, 15000). %%-------------------------------------------------------------------- %% gen_server callbacks