~cosmicrose/liberator

95bf1d4124d7163c4f5ed2345a505b1b3a6dbfc1 — Rosa Richter 2 years ago cc5fd16 main
Credo fixes
2 files changed, 2 insertions(+), 4 deletions(-)

M lib/liberator/trace.ex
M lib/mix/tasks/liberator.chart.ex
M lib/liberator/trace.ex => lib/liberator/trace.ex +1 -2
@@ 100,12 100,11 @@ defmodule Liberator.Trace do
      # remove :start and :stop traces
      |> Enum.slice(1, Enum.count(trace) - 2)
      |> Enum.with_index()
      |> Enum.map(fn {%{step: key, duration: duration_native} = trace, index} ->
      |> Enum.map_join("\n", fn {%{step: key, duration: duration_native} = trace, index} ->
        val = Map.get(trace, :result, nil)
        duration_us = System.convert_time_unit(duration_native, :native, :microsecond)
        "    #{index + 1}. #{Atom.to_string(key)}: #{inspect(val)} (took #{duration_us} ┬Ás)"
      end)
      |> Enum.join("\n")

    header =
      if request_id do

M lib/mix/tasks/liberator.chart.ex => lib/mix/tasks/liberator.chart.ex +1 -2
@@ 83,10 83,9 @@ defmodule Mix.Tasks.Liberator.Chart do
    handler_rank_group =
      base_module.handlers()
      |> Map.keys()
      |> Enum.map(fn handler ->
      |> Enum.map_join(" ", fn handler ->
        ~s("#{handler}")
      end)
      |> Enum.join(" ")

    handler_shapes =
      base_module.handlers()