Sfoglia il codice sorgente

refactor: simplify redis trace formatting

Kjell Winblad 1 anno fa
parent
commit
3f1fe413ee

+ 2 - 3
apps/emqx_bridge_redis/src/emqx_bridge_redis_connector.erl

@@ -170,9 +170,8 @@ on_batch_query(
     end.
 
 trace_format_commands(Commands0) ->
-    Commands1 = [[unicode:characters_to_list(S) || S <- C] || C <- Commands0],
-    Commands2 = [lists:join(" ", C) || C <- Commands1],
-    unicode:characters_to_binary(lists:join("; ", Commands2)).
+    Commands1 = [lists:join(" ", C) || C <- Commands0],
+    unicode:characters_to_binary(lists:join("; ", Commands1)).
 
 on_format_query_result({ok, Msg}) ->
     #{result => ok, message => Msg};