chore: correct api examples

follow https://github.com/emqx/emqx/pull/10114
This commit is contained in:
JianBo He 2023-03-20 16:05:06 +08:00
parent 55f427aa4d
commit d1689f6957
2 changed files with 3 additions and 8 deletions

View File

@ -43,9 +43,8 @@ conn_bridge_examples(Method) ->
}
].
values(get, Type) ->
maps:merge(values(post, Type), ?METRICS_EXAMPLE);
values(post, Type) ->
%% no difference in get/post/put method
values(_Method, Type) ->
#{
enable => true,
type => Type,
@ -66,9 +65,7 @@ values(post, Type) ->
query_mode => sync,
max_queue_bytes => ?DEFAULT_QUEUE_SIZE
}
};
values(put, Type) ->
values(post, Type).
}.
%%--------------------------------------------------------------------
%% schema

View File

@ -294,8 +294,6 @@ connect_direct_cassa(Config) ->
% These funs connect and then stop the cassandra connection
connect_and_create_table(Config) ->
%% XXX: drop first
_ = connect_and_drop_table(Config),
Con = connect_direct_cassa(Config),
{ok, _} = ecql:query(Con, ?SQL_CREATE_TABLE),
ok = ecql:close(Con).