diff options
Diffstat (limited to 'shardweb/lib/shard_web/channels')
-rw-r--r-- | shardweb/lib/shard_web/channels/room_channel.ex | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/shardweb/lib/shard_web/channels/room_channel.ex b/shardweb/lib/shard_web/channels/room_channel.ex index 2dd733b..bb41a74 100644 --- a/shardweb/lib/shard_web/channels/room_channel.ex +++ b/shardweb/lib/shard_web/channels/room_channel.ex @@ -6,8 +6,8 @@ defmodule ShardWeb.RoomChannel do def join("room:" <> room_name, payload, socket) do if authorized?(payload) do - list = for {_chid, manifest, chpid} <- :ets.tab2list(:shard_db), - {:chat, chan} = manifest, + list = for {_chid, manifest, chpid} <- Shard.Manager.list_shards, + %SApp.Chat.Manifest{channel: chan} = manifest, do: {chan, chpid} pid = case List.keyfind(list, room_name, 0) do nil -> |