Skip to content

Commit

Permalink
remove old code for hot reload
Browse files Browse the repository at this point in the history
  • Loading branch information
Neylix committed Jul 25, 2023
1 parent 0c9ffd3 commit ba76e75
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions lib/archethic/db/embedded_impl/supervisor.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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},
Expand Down

0 comments on commit ba76e75

Please sign in to comment.