Fix: unsubscribe should use Pubsub.unsubscribe() (#2727)

This commit is contained in:
Barna Kovacs 2024-07-26 15:47:04 +02:00 committed by GitHub
parent a4ec1c4388
commit 3e63097e33
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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