fix: remove query mode from redis action trace as it only supports sync

Fixes:
https://emqx.atlassian.net/browse/EMQX-12336
This commit is contained in:
Kjell Winblad 2024-05-15 14:32:15 +02:00
parent faf3492e58
commit c72682d81b
1 changed files with 2 additions and 2 deletions

View File

@ -119,7 +119,7 @@ on_query(
), ),
emqx_trace:rendered_action_template( emqx_trace:rendered_action_template(
MessageTag, MessageTag,
#{command => Cmd, batch => false, mode => sync} #{command => Cmd, batch => false}
), ),
Result = query(InstId, {cmd, Cmd}, RedisConnSt), Result = query(InstId, {cmd, Cmd}, RedisConnSt),
?tp( ?tp(
@ -143,7 +143,7 @@ on_batch_query(
[{ChannelID, _} | _] = BatchData, [{ChannelID, _} | _] = BatchData,
emqx_trace:rendered_action_template( emqx_trace:rendered_action_template(
ChannelID, ChannelID,
#{commands => Cmds, batch => ture, mode => sync} #{commands => Cmds, batch => ture}
), ),
Result = query(InstId, {cmds, Cmds}, RedisConnSt), Result = query(InstId, {cmds, Cmds}, RedisConnSt),
?tp( ?tp(