Update names in subscribe portion of sync protocol

This commit is contained in:
Lucien Greathouse
2019-11-11 17:52:09 -08:00
parent 94e1501329
commit 47614c3102
7 changed files with 23 additions and 32 deletions

View File

@@ -103,15 +103,7 @@ function ServeSession:__mainSyncLoop()
return self.__apiContext:retrieveMessages()
:andThen(function(messages)
for _, message in ipairs(messages) do
-- TODO: Update server to return patches in correct format so
-- that we don't have to transform them for the reconciler.
local asPatch = {
removed = message.removedInstances,
updated = message.updatedInstances,
added = message.addedInstances,
}
self.__reconciler:applyPatch(asPatch)
self.__reconciler:applyPatch(message)
end
if self.__status ~= Status.Disconnected then