Skip to content

Commit

Permalink
Merge pull request #69 from sgruby/master
Browse files Browse the repository at this point in the history
Fixed multi-threading crash when copying a store
  • Loading branch information
kean committed Feb 28, 2022
2 parents 9efd7d7 + 332f9a5 commit d6f5659
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/PulseCore/LoggerStore.swift
Original file line number Diff line number Diff line change
Expand Up @@ -641,11 +641,11 @@ extension LoggerStore {
}

private func messageCount() throws -> Int {
try container.viewContext.fetch(LoggerMessageEntity.fetchRequest()).count
try backgroundContext.fetch(LoggerMessageEntity.fetchRequest()).count
}

private func networkRequestsCount() throws -> Int {
try container.viewContext.fetch(LoggerNetworkRequestEntity.fetchRequest()).count
try backgroundContext.fetch(LoggerNetworkRequestEntity.fetchRequest()).count
}
}

Expand Down

0 comments on commit d6f5659

Please sign in to comment.