aboutsummaryrefslogtreecommitdiff
path: root/shard/lib/app/chat.ex
diff options
context:
space:
mode:
Diffstat (limited to 'shard/lib/app/chat.ex')
-rw-r--r--shard/lib/app/chat.ex10
1 files changed, 5 insertions, 5 deletions
diff --git a/shard/lib/app/chat.ex b/shard/lib/app/chat.ex
index 4752dc6..fa62c9e 100644
--- a/shard/lib/app/chat.ex
+++ b/shard/lib/app/chat.ex
@@ -50,15 +50,15 @@ defmodule SApp.Chat do
case Shard.Manager.register(id, manifest, self()) do
:ok ->
Shard.Manager.dispatch_to(id, nil, self())
- {:ok, block_store} = SApp.BlockStore.start_link(id, :block_store)
- mst = %MST{store: %SApp.BlockStore{pid: block_store},
+ {:ok, page_store} = SApp.PageStore.start_link(id, :page_store)
+ mst = %MST{store: %SApp.PageStore{pid: page_store},
cmp: &msg_cmp/2}
GenServer.cast(self(), :init_pull)
{:ok,
%{channel: channel,
id: id,
manifest: manifest,
- block_store: block_store,
+ page_store: page_store,
mst: mst,
subs: MapSet.new,
}
@@ -160,7 +160,7 @@ defmodule SApp.Chat do
if mst2.root == new_root do
# This was the only message missing, we are happy!
state = %{state | mst: mst2}
- GenServer.cast(state.block_store, {:set_roots, [mst2.root]})
+ GenServer.cast(state.page_store, {:set_roots, [mst2.root]})
msg_callback(state, msgitem)
state
else
@@ -199,7 +199,7 @@ defmodule SApp.Chat do
end
end
- GenServer.cast(state.block_store, {:set_roots, [mst.root]})
+ GenServer.cast(state.page_store, {:set_roots, [mst.root]})
%{state | mst: mst}
end