From 1a497bcaf2b4aaf476c6d1a5eddb9f99c028fa60 Mon Sep 17 00:00:00 2001 From: Thales Macedo Garitezi Date: Mon, 24 Jun 2024 17:17:52 -0300 Subject: [PATCH] fix(greptime): correctly define grpc options for `grpcbox_channel` Will probably fix CI flakiness. --- .../emqx_bridge_greptimedb/src/emqx_bridge_greptimedb.app.src | 2 +- .../src/emqx_bridge_greptimedb_connector.erl | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/emqx_bridge_greptimedb/src/emqx_bridge_greptimedb.app.src b/apps/emqx_bridge_greptimedb/src/emqx_bridge_greptimedb.app.src index badddb20f..8c3223e8b 100644 --- a/apps/emqx_bridge_greptimedb/src/emqx_bridge_greptimedb.app.src +++ b/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, diff --git a/apps/emqx_bridge_greptimedb/src/emqx_bridge_greptimedb_connector.erl b/apps/emqx_bridge_greptimedb/src/emqx_bridge_greptimedb_connector.erl index 1cd808e46..ee256794c 100644 --- a/apps/emqx_bridge_greptimedb/src/emqx_bridge_greptimedb_connector.erl +++ b/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(