Skip to content

Commit 39c66ac

Browse files
committed
improvements
1 parent 0b06329 commit 39c66ac

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

Sources/ParseCareKit/Models/RemoteSynchronizing.swift

+1-3
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,6 @@ actor RemoteSynchronizing {
6868
guard let currentVector = knowledgeVector else {
6969
return true
7070
}
71-
var testVector = currentVector
72-
testVector.merge(with: vector)
73-
return vector > currentVector || testVector.uuids.count > currentVector.uuids.count
71+
return vector > currentVector
7472
}
7573
}

Sources/ParseCareKit/ParseRemote.swift

-7
Original file line numberDiff line numberDiff line change
@@ -375,14 +375,7 @@ public class ParseRemote: OCKRemoteSynchronizable {
375375
}
376376

377377
// 10. Save updated clock to the remote and notify peer that sync is complete.
378-
let hasNewerClock = await self.remoteStatus.hasNewerVector(updatedParseVector)
379378
await self.remoteStatus.updateClock(updatedClock)
380-
guard shouldIncrementClock || hasNewerClock else {
381-
await self.remoteStatus.notSynchronzing()
382-
await self.subscribeToClock()
383-
completion(nil)
384-
return
385-
}
386379
do {
387380
_ = try await updatedClock.save()
388381
Logger.pushRevisions.debug("Finished pushing revisions")

0 commit comments

Comments
 (0)