Minor
All checks were successful
Build & Test / nix-build (push) Successful in 1m48s

This commit is contained in:
Kodi Craft 2024-10-15 11:58:14 +02:00
parent 0b8bbca40b
commit e8f0e1b4c0
Signed by: kodi
GPG Key ID: 69D9EED60B242822
2 changed files with 2 additions and 0 deletions

View File

@ -36,6 +36,7 @@ defmodule Amethyst.Application do
name: Amethyst.BlockRegistry}, name: Amethyst.BlockRegistry},
Supervisor.child_spec( Supervisor.child_spec(
{Task, fn -> {Task, fn ->
# TODO: not this
Amethyst.DataGenerator.generate_and_populate_data( Amethyst.DataGenerator.generate_and_populate_data(
:latest, :latest,
"/tmp/server.jar", "/tmp/server.jar",

View File

@ -102,6 +102,7 @@ defmodule Amethyst.DataGenerator do
{:ok, jar_path} -> {:ok, jar_path} ->
case generate_data_files(jar_path, data_dir, java_bin) do case generate_data_files(jar_path, data_dir, java_bin) do
{:ok, data_path} -> {:ok, data_path} ->
Logger.info("Finished generating data in #{Time.diff(Time.utc_now(), start_time, :millisecond)}ms")
populate_blockregistry(data_path) populate_blockregistry(data_path)
Logger.info("Finished generating and populating data in #{Time.diff(Time.utc_now(), start_time, :millisecond)}ms") Logger.info("Finished generating and populating data in #{Time.diff(Time.utc_now(), start_time, :millisecond)}ms")
{:error, code} -> {:error, code} {:error, code} -> {:error, code}