mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-02-24 14:58:35 +08:00
Add code comment around persistent term usage
This commit is contained in:
parent
d7168c288c
commit
90f5ec61bf
1 changed files with 1 additions and 0 deletions
|
@ -114,6 +114,7 @@ defimpl Livebook.Hubs.Provider, for: Livebook.Hubs.Team do
|
||||||
{offline?, fields} = Map.pop(fields, :offline?, false)
|
{offline?, fields} = Map.pop(fields, :offline?, false)
|
||||||
|
|
||||||
offline =
|
offline =
|
||||||
|
# We don't want to persist offline in storage, so we read from persistent term
|
||||||
if offline? do
|
if offline? do
|
||||||
:persistent_term.get({__MODULE__, :offline, fields.id})
|
:persistent_term.get({__MODULE__, :offline, fields.id})
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue