This commit is contained in:
parent
0b8bbca40b
commit
e8f0e1b4c0
@ -36,6 +36,7 @@ defmodule Amethyst.Application do
|
||||
name: Amethyst.BlockRegistry},
|
||||
Supervisor.child_spec(
|
||||
{Task, fn ->
|
||||
# TODO: not this
|
||||
Amethyst.DataGenerator.generate_and_populate_data(
|
||||
:latest,
|
||||
"/tmp/server.jar",
|
||||
|
@ -102,6 +102,7 @@ defmodule Amethyst.DataGenerator do
|
||||
{:ok, jar_path} ->
|
||||
case generate_data_files(jar_path, data_dir, java_bin) do
|
||||
{:ok, data_path} ->
|
||||
Logger.info("Finished generating data in #{Time.diff(Time.utc_now(), start_time, :millisecond)}ms")
|
||||
populate_blockregistry(data_path)
|
||||
Logger.info("Finished generating and populating data in #{Time.diff(Time.utc_now(), start_time, :millisecond)}ms")
|
||||
{:error, code} -> {:error, code}
|
||||
|
Loading…
Reference in New Issue
Block a user