From e8f0e1b4c0c0298d7b8a2c0c6cc171de0ebdc214 Mon Sep 17 00:00:00 2001 From: Kodi Craft Date: Tue, 15 Oct 2024 11:58:14 +0200 Subject: [PATCH] Minor --- apps/amethyst/lib/amethyst.ex | 1 + apps/amethyst/lib/datagen.ex | 1 + 2 files changed, 2 insertions(+) diff --git a/apps/amethyst/lib/amethyst.ex b/apps/amethyst/lib/amethyst.ex index 564e1af..0344dcb 100644 --- a/apps/amethyst/lib/amethyst.ex +++ b/apps/amethyst/lib/amethyst.ex @@ -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", diff --git a/apps/amethyst/lib/datagen.ex b/apps/amethyst/lib/datagen.ex index c3645b3..90948f5 100644 --- a/apps/amethyst/lib/datagen.ex +++ b/apps/amethyst/lib/datagen.ex @@ -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}