Переглянути джерело

chore(gw): increase timeout to update gateway instance

JianBo He 3 роки тому
батько
коміт
18d265cecd
1 змінених файлів з 3 додано та 1 видалено
  1. 3 1
      apps/emqx_gateway/src/emqx_gateway_insta_sup.erl

+ 3 - 1
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