Don't handle hub_changed events

This commit is contained in:
Alexandre de Souza 2025-09-24 18:44:27 -03:00
parent f59d2f3e1d
commit e5e470c76e
No known key found for this signature in database
GPG key ID: E39228FFBA346545

View file

@ -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