From 910ec97fd1b656b9aba3c7a203bfae671cf5346b Mon Sep 17 00:00:00 2001 From: Dmitry Popov Date: Thu, 6 Nov 2025 09:23:19 +0100 Subject: [PATCH] chore: refactored map server processes --- lib/wanderer_app/map/map_zkb_data_fetcher.ex | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/lib/wanderer_app/map/map_zkb_data_fetcher.ex b/lib/wanderer_app/map/map_zkb_data_fetcher.ex index e83697fc..7f0761d8 100644 --- a/lib/wanderer_app/map/map_zkb_data_fetcher.ex +++ b/lib/wanderer_app/map/map_zkb_data_fetcher.ex @@ -35,16 +35,14 @@ defmodule WandererApp.Map.ZkbDataFetcher do |> Task.async_stream( fn map_id -> try do - if WandererApp.Map.Server.map_pid(map_id) do - # Always update kill counts - update_map_kills(map_id) + # Always update kill counts + update_map_kills(map_id) - # Update detailed kills for maps with active subscriptions - {:ok, is_subscription_active} = map_id |> WandererApp.Map.is_subscription_active?() + # Update detailed kills for maps with active subscriptions + {:ok, is_subscription_active} = map_id |> WandererApp.Map.is_subscription_active?() - if is_subscription_active do - update_detailed_map_kills(map_id) - end + if is_subscription_active do + update_detailed_map_kills(map_id) end rescue e ->