chore: correct api examples
follow https://github.com/emqx/emqx/pull/10114
This commit is contained in:
parent
55f427aa4d
commit
d1689f6957
|
@ -43,9 +43,8 @@ conn_bridge_examples(Method) ->
|
||||||
}
|
}
|
||||||
].
|
].
|
||||||
|
|
||||||
values(get, Type) ->
|
%% no difference in get/post/put method
|
||||||
maps:merge(values(post, Type), ?METRICS_EXAMPLE);
|
values(_Method, Type) ->
|
||||||
values(post, Type) ->
|
|
||||||
#{
|
#{
|
||||||
enable => true,
|
enable => true,
|
||||||
type => Type,
|
type => Type,
|
||||||
|
@ -66,9 +65,7 @@ values(post, Type) ->
|
||||||
query_mode => sync,
|
query_mode => sync,
|
||||||
max_queue_bytes => ?DEFAULT_QUEUE_SIZE
|
max_queue_bytes => ?DEFAULT_QUEUE_SIZE
|
||||||
}
|
}
|
||||||
};
|
}.
|
||||||
values(put, Type) ->
|
|
||||||
values(post, Type).
|
|
||||||
|
|
||||||
%%--------------------------------------------------------------------
|
%%--------------------------------------------------------------------
|
||||||
%% schema
|
%% schema
|
||||||
|
|
|
@ -294,8 +294,6 @@ connect_direct_cassa(Config) ->
|
||||||
|
|
||||||
% These funs connect and then stop the cassandra connection
|
% These funs connect and then stop the cassandra connection
|
||||||
connect_and_create_table(Config) ->
|
connect_and_create_table(Config) ->
|
||||||
%% XXX: drop first
|
|
||||||
_ = connect_and_drop_table(Config),
|
|
||||||
Con = connect_direct_cassa(Config),
|
Con = connect_direct_cassa(Config),
|
||||||
{ok, _} = ecql:query(Con, ?SQL_CREATE_TABLE),
|
{ok, _} = ecql:query(Con, ?SQL_CREATE_TABLE),
|
||||||
ok = ecql:close(Con).
|
ok = ecql:close(Con).
|
||||||
|
|
Loading…
Reference in New Issue