mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-02-23 22:37:41 +08:00
Fix: unsubscribe
should use Pubsub.unsubscribe()
(#2727)
This commit is contained in:
parent
a4ec1c4388
commit
3e63097e33
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue