Browse Source

Merge pull request #13328 from thalesmg/fix-greptime-grpcbox-opts-r57-20240624

fix(greptime): correctly define grpc options for `grpcbox_channel`
Thales Macedo Garitezi 1 year ago
parent
commit
a2e8d49847

+ 1 - 1
apps/emqx_bridge_greptimedb/src/emqx_bridge_greptimedb.app.src

@@ -1,6 +1,6 @@
 {application, emqx_bridge_greptimedb, [
     {description, "EMQX GreptimeDB Bridge"},
-    {vsn, "0.2.0"},
+    {vsn, "0.2.1"},
     {registered, []},
     {applications, [
         kernel,

+ 2 - 2
apps/emqx_bridge_greptimedb/src/emqx_bridge_greptimedb_connector.erl

@@ -359,7 +359,7 @@ do_start_client(
             {error, Reason}
     end.
 
-grpc_config() ->
+grpc_opts() ->
     #{
         sync_start => true,
         connect_timeout => ?CONNECT_TIMEOUT
@@ -378,7 +378,7 @@ client_config(
         {pool, InstId},
         {pool_type, random},
         {auto_reconnect, ?AUTO_RECONNECT_S},
-        {gprc_options, grpc_config()}
+        {grpc_opts, grpc_opts()}
     ] ++ protocol_config(Config).
 
 protocol_config(