From 3e63097e33a7c2f534ddd66bc949e241be83644c Mon Sep 17 00:00:00 2001 From: Barna Kovacs Date: Fri, 26 Jul 2024 15:47:04 +0200 Subject: [PATCH] Fix: `unsubscribe` should use `Pubsub.unsubscribe()` (#2727) --- lib/livebook/app.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/livebook/app.ex b/lib/livebook/app.ex index 19ada4d2a..756b7e3c7 100644 --- a/lib/livebook/app.ex +++ b/lib/livebook/app.ex @@ -192,7 +192,7 @@ defmodule Livebook.App do """ @spec unsubscribe(slug()) :: :ok | {:error, term()} def unsubscribe(slug) do - Phoenix.PubSub.subscribe(Livebook.PubSub, "apps:#{slug}") + Phoenix.PubSub.unsubscribe(Livebook.PubSub, "apps:#{slug}") end @impl true