Current section
Files
Jump to
Current section
Files
lib/ex_ipld/import_stats.ex
defmodule ExIpld.ImportStats do
@moduledoc false
require Logger
defstruct block_bytes_count: 0, block_count: 0
@spec new(map) :: ExIpld.Dag.import_stats()
def new(stats) do
Logger.debug("ImportStats.new(): #{inspect(stats)}")
%__MODULE__{
block_bytes_count: stats["BlockBytesCount"],
block_count: stats["BlockCount"]
}
end
end