mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-27 10:18:54 +00:00
chore(portal): tag Relay WAL todos (#9767)
These aren't a priority to clean up right now, but I wanted to tag them so I don't forget to do it later on.
This commit is contained in:
@@ -104,6 +104,7 @@ defmodule Domain.Relays do
|
||||
|
||||
Group.Changeset.delete(group)
|
||||
end,
|
||||
# TODO: WAL
|
||||
after_commit: &disconnect_relays_in_group/1
|
||||
)
|
||||
end
|
||||
@@ -305,6 +306,7 @@ defmodule Domain.Relays do
|
||||
|> Authorizer.for_subject(subject)
|
||||
|> Repo.fetch_and_update(Relay.Query,
|
||||
with: &Relay.Changeset.delete/1,
|
||||
# TODO: WAL
|
||||
after_commit: &disconnect_relay/1
|
||||
)
|
||||
end
|
||||
@@ -357,6 +359,9 @@ defmodule Domain.Relays do
|
||||
|
||||
### Presence
|
||||
|
||||
# TODO: WAL
|
||||
# Move these to Presence module
|
||||
|
||||
defp presence_topic(relay_or_id),
|
||||
do: "presences:#{relay_topic(relay_or_id)}"
|
||||
|
||||
@@ -377,6 +382,9 @@ defmodule Domain.Relays do
|
||||
|
||||
### PubSub
|
||||
|
||||
# TODO: WAL
|
||||
# Move these to PubSub module
|
||||
|
||||
defp relay_topic(%Relay{} = relay), do: relay_topic(relay.id)
|
||||
defp relay_topic(relay_id), do: "relays:#{relay_id}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user