fix: syntax error and compile error

This commit is contained in:
JimMoen 2022-08-11 19:45:52 +08:00
parent ed749df5c6
commit 3a76a50382
4 changed files with 6 additions and 4 deletions

View File

@ -34,7 +34,7 @@
create_dry_run/2,
remove/1,
remove/2,
remove/3,
remove/4,
update/2,
update/3,
stop/2,

View File

@ -58,7 +58,7 @@
batch_time => integer(),
enable_queue => boolean(),
queue_max_bytes => integer(),
query_mode => async | sync | dynamic
query_mode => async | sync | dynamic,
resume_interval => integer(),
async_inflight_window => integer()
}.

View File

@ -295,7 +295,7 @@ fetch_creation_opts(Opts) ->
resume_interval,
async_inflight_window
],
maps:with(creation_opts(), SupportedOpts).
maps:with(SupportedOpts, Opts).
-spec list_instances() -> [resource_id()].
list_instances() ->

View File

@ -71,7 +71,9 @@ values(Protocol, post) ->
<<"${topic},clientid=${clientid}", " ", "payload=${payload},",
"${clientid}_int_value=${payload.int_key}i,", SupportUint/binary,
"bool=${payload.bool}">>,
batch => #{enable_batch => false, batch_size => 5, batch_time => <<"1m">>}
enable_batch => false,
batch_size => 5,
batch_time => <<"1m">>
};
values(Protocol, put) ->
values(Protocol, post).