chore: make dialyzer && test happy
This commit is contained in:
parent
ce32526c96
commit
cb31032e6d
|
@ -1,7 +1,7 @@
|
||||||
%% -*- mode: erlang -*-
|
%% -*- mode: erlang -*-
|
||||||
{application, emqx_bridge_iotdb, [
|
{application, emqx_bridge_iotdb, [
|
||||||
{description, "EMQX Enterprise Apache IoTDB Bridge"},
|
{description, "EMQX Enterprise Apache IoTDB Bridge"},
|
||||||
{vsn, "0.1.1"},
|
{vsn, "0.1.2"},
|
||||||
{modules, [
|
{modules, [
|
||||||
emqx_bridge_iotdb,
|
emqx_bridge_iotdb,
|
||||||
emqx_bridge_iotdb_impl
|
emqx_bridge_iotdb_impl
|
||||||
|
|
|
@ -23,35 +23,35 @@
|
||||||
scheme := http | https,
|
scheme := http | https,
|
||||||
host := iolist(),
|
host := iolist(),
|
||||||
port := inet:port_number(),
|
port := inet:port_number(),
|
||||||
path := '_'
|
path := _
|
||||||
},
|
},
|
||||||
connect_timeout := pos_integer(),
|
connect_timeout := pos_integer(),
|
||||||
pool_type := random | hash,
|
pool_type := random | hash,
|
||||||
pool_size := pos_integer(),
|
pool_size := pos_integer(),
|
||||||
request := undefined | map(),
|
request => undefined | map(),
|
||||||
is_aligned := boolean(),
|
is_aligned => boolean(),
|
||||||
iotdb_version := binary(),
|
iotdb_version => binary(),
|
||||||
device_id := binary() | undefined,
|
device_id => binary() | undefined,
|
||||||
atom() => '_'
|
atom() => _
|
||||||
}.
|
}.
|
||||||
|
|
||||||
-type state() ::
|
-type state() ::
|
||||||
#{
|
#{
|
||||||
base_path := '_',
|
base_path := _,
|
||||||
base_url := #{
|
base_url := #{
|
||||||
scheme := http | https,
|
scheme := http | https,
|
||||||
host := iolist(),
|
host := iolist(),
|
||||||
port := inet:port_number(),
|
port := inet:port_number(),
|
||||||
path := '_'
|
path := _
|
||||||
},
|
},
|
||||||
connect_timeout := pos_integer(),
|
connect_timeout := pos_integer(),
|
||||||
pool_type := random | hash,
|
pool_type := random | hash,
|
||||||
pool_size := pos_integer(),
|
pool_size := pos_integer(),
|
||||||
request := undefined | map(),
|
request => undefined | map(),
|
||||||
is_aligned := boolean(),
|
is_aligned => boolean(),
|
||||||
iotdb_version := binary(),
|
iotdb_version => binary(),
|
||||||
device_id := binary() | undefined,
|
device_id => binary() | undefined,
|
||||||
atom() => '_'
|
atom() => _
|
||||||
}.
|
}.
|
||||||
|
|
||||||
-type manager_id() :: binary().
|
-type manager_id() :: binary().
|
||||||
|
|
|
@ -25,7 +25,8 @@ wrap_auth_headers_test_() ->
|
||||||
meck:expect(ehttpc_sup, start_pool, 2, {ok, foo}),
|
meck:expect(ehttpc_sup, start_pool, 2, {ok, foo}),
|
||||||
meck:expect(ehttpc, request, fun(_, _, Req, _, _) -> {ok, 200, Req} end),
|
meck:expect(ehttpc, request, fun(_, _, Req, _, _) -> {ok, 200, Req} end),
|
||||||
meck:expect(ehttpc_pool, pick_worker, 1, self()),
|
meck:expect(ehttpc_pool, pick_worker, 1, self()),
|
||||||
[ehttpc_sup, ehttpc, ehttpc_pool]
|
meck:expect(emqx_resource, allocate_resource, 3, ok),
|
||||||
|
[ehttpc_sup, ehttpc, ehttpc_pool, emqx_resource]
|
||||||
end,
|
end,
|
||||||
fun meck:unload/1, fun(_) ->
|
fun meck:unload/1, fun(_) ->
|
||||||
Config = #{
|
Config = #{
|
||||||
|
|
Loading…
Reference in New Issue