Skip to content

Commit

Permalink
Revert add isApplyingChagePack variable
Browse files Browse the repository at this point in the history
  • Loading branch information
humdrum committed Jun 21, 2024
1 parent 942f7d6 commit beddde7
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions Sources/Document/Document.swift
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,6 @@ public actor Document {

private let workSemaphore = AsyncSemaphore(value: 1)

public var isApplyingChagePack = false

public init(key: String) {
self.init(key: key, opts: DocumentOptions(disableGC: false))
}
Expand Down Expand Up @@ -260,8 +258,6 @@ public actor Document {
* - Parameter pack: change pack
*/
func applyChangePack(_ pack: ChangePack) async throws {
self.isApplyingChagePack = true

await self.workSemaphore.wait()

if let snapshot = pack.getSnapshot() {
Expand Down Expand Up @@ -290,8 +286,6 @@ public actor Document {

Logger.trace("\(self.root.toJSON())")

self.isApplyingChagePack = false

self.workSemaphore.signal()
}

Expand Down

0 comments on commit beddde7

Please sign in to comment.