From ba76e7552423687824db80122f36a9a516ee68c2 Mon Sep 17 00:00:00 2001 From: Neylix Date: Tue, 25 Jul 2023 17:13:58 +0200 Subject: [PATCH] remove old code for hot reload --- lib/archethic/db/embedded_impl/supervisor.ex | 8 -------- 1 file changed, 8 deletions(-) diff --git a/lib/archethic/db/embedded_impl/supervisor.ex b/lib/archethic/db/embedded_impl/supervisor.ex index bb745f778..1f53db3cc 100644 --- a/lib/archethic/db/embedded_impl/supervisor.ex +++ b/lib/archethic/db/embedded_impl/supervisor.ex @@ -22,14 +22,6 @@ defmodule Archethic.DB.EmbeddedImpl.Supervisor do path = Archethic.DB.EmbeddedImpl.db_path() ChainWriter.setup_folders!(path) - # Remove old things while in hot reload - # TODO remove after version 1.1.0 - if :ets.whereis(:archethic_db_chain_writers) != :undefined do - :ets.delete(:archethic_db_chain_writers) - Process.whereis(ChainWriterSupervisor) |> Process.unlink() - DynamicSupervisor.stop(ChainWriterSupervisor) - end - children = [ {PartitionSupervisor, child_spec: {ChainWriter, path: path}, name: ChainWriterSupervisor, partitions: 20},