Packages

Interplanetary Linked Data for Elixir

Retired package: Renamed - Renamed to ex_ipfs_ipld

Current section

Files

Jump to
ex_ipld lib ex_ipld import_stats.ex
Raw

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