fix(emqx_resource): call async reply fun in simple_aysnc_query
This commit is contained in:
parent
ae636a52d7
commit
2274a192cc
|
@ -158,7 +158,9 @@ simple_async_query(Id, Request, QueryOpts0) ->
|
||||||
Ref = make_request_ref(),
|
Ref = make_request_ref(),
|
||||||
Result = call_query(async_if_possible, Id, Index, Ref, ?SIMPLE_QUERY(Request), QueryOpts),
|
Result = call_query(async_if_possible, Id, Index, Ref, ?SIMPLE_QUERY(Request), QueryOpts),
|
||||||
_ = handle_query_result(Id, Result, _HasBeenSent = false),
|
_ = handle_query_result(Id, Result, _HasBeenSent = false),
|
||||||
Result.
|
maybe_apply_async_reply_fun(
|
||||||
|
Result, QueryOpts
|
||||||
|
).
|
||||||
|
|
||||||
simple_query_opts() ->
|
simple_query_opts() ->
|
||||||
ensure_expire_at(#{simple_query => true, timeout => infinity}).
|
ensure_expire_at(#{simple_query => true, timeout => infinity}).
|
||||||
|
|
Loading…
Reference in New Issue