From d68a317c70479c8933b50f948946bcea27f457cd Mon Sep 17 00:00:00 2001 From: Roman Heinrich Date: Fri, 27 Dec 2024 20:33:50 +0100 Subject: [PATCH] Chore: less noise in custom projection logic --- lib/sample/projections/proj1.ex | 2 +- lib/sample/projections/proj2.ex | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/sample/projections/proj1.ex b/lib/sample/projections/proj1.ex index 37242e0..be1ae0e 100644 --- a/lib/sample/projections/proj1.ex +++ b/lib/sample/projections/proj1.ex @@ -18,7 +18,7 @@ defmodule Sample.Projections.Proj1 do def handle_event(multi, data = %Data{}, {event, index}) do multi = Ecto.Multi.run(multi, {:event, index}, fn _repo, _changes -> - IO.inspect(event.data, label: "index-#{index}") + # IO.inspect(event.data, label: "index-#{index}") Repo.insert_all("projection_proj1", [%{id: index, data: "OK"}]) {:ok, 1} end) diff --git a/lib/sample/projections/proj2.ex b/lib/sample/projections/proj2.ex index 89e5d78..83a87e4 100644 --- a/lib/sample/projections/proj2.ex +++ b/lib/sample/projections/proj2.ex @@ -7,7 +7,7 @@ defmodule Sample.Projections.Proj2 do def handle_event(multi, data = %Data{}, {event, index}) do multi = Ecto.Multi.run(multi, {:event, index}, fn _repo, _changes -> - IO.inspect(event.data, label: "index-#{index}") + # IO.inspect(event.data, label: "index-#{index}") Repo.insert_all("projection_proj2", [%{id: index, data: "OK"}]) {:ok, 1} end)