Procházet zdrojové kódy

chore(gw): increase timeout to update gateway instance

JianBo He před 3 roky
rodič
revize
18d265cecd
1 změnil soubory, kde provedl 3 přidání a 1 odebrání
  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, {update, Config}).
 
 
 call(Pid, Req) ->
 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
 %% gen_server callbacks