From e5e470c76e6303688a61f0774201735535f1d60d Mon Sep 17 00:00:00 2001 From: Alexandre de Souza Date: Wed, 24 Sep 2025 18:44:27 -0300 Subject: [PATCH] Don't handle `hub_changed` events --- lib/livebook/file_system/mounter.ex | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/livebook/file_system/mounter.ex b/lib/livebook/file_system/mounter.ex index c3f29f335..50b156429 100644 --- a/lib/livebook/file_system/mounter.ex +++ b/lib/livebook/file_system/mounter.ex @@ -27,7 +27,7 @@ defmodule Livebook.FileSystem.Mounter do @impl GenServer def handle_continue(:boot, state) do - Hubs.Broadcasts.subscribe([:connection, :crud, :file_systems]) + Hubs.Broadcasts.subscribe([:crud, :file_systems]) Process.send_after(self(), :remount, state.loop_delay) {:noreply, mount_file_systems(state, Hubs.Personal.id())} @@ -50,10 +50,6 @@ defmodule Livebook.FileSystem.Mounter do {:noreply, unmount_file_system(state, file_system)} end - def handle_info({:hub_changed, hub_id}, state) do - {:noreply, mount_file_systems(state, hub_id)} - end - def handle_info({:hub_deleted, hub_id}, state) do {:noreply, unmount_file_systems(state, hub_id)} end