Skip to content

Commit

Permalink
Remove actor notation
Browse files Browse the repository at this point in the history
  • Loading branch information
philippzagar committed Feb 11, 2024
1 parent 0ace3fb commit b58ba7a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Sources/SpeziFHIRInterpretation/FHIRResourceInterpreter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ public class FHIRResourceInterpreter {
///
/// - Parameter resource: The resource where the cached interpretation should be loaded from.
/// - Returns: The cached interpretation. Returns `nil` if the resource is not present.
public func cachedInterpretation(forResource resource: FHIRResource) async -> String? {
await resourceProcessor.results[resource.id]
public func cachedInterpretation(forResource resource: FHIRResource) -> String? {
resourceProcessor.results[resource.id]

Check warning on line 51 in Sources/SpeziFHIRInterpretation/FHIRResourceInterpreter.swift

View check run for this annotation

Codecov / codecov/patch

Sources/SpeziFHIRInterpretation/FHIRResourceInterpreter.swift#L51

Added line #L51 was not covered by tests
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import SpeziLLMOpenAI
import SpeziLocalStorage


actor FHIRResourceProcessor<Content: Codable & LosslessStringConvertible> {
class FHIRResourceProcessor<Content: Codable & LosslessStringConvertible> {
typealias Results = [FHIRResource.ID: Content]


Expand Down
4 changes: 2 additions & 2 deletions Sources/SpeziFHIRInterpretation/FHIRResourceSummary.swift
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ public class FHIRResourceSummary {
///
/// - Parameter resource: The resource where the cached summary should be loaded from.
/// - Returns: The cached summary. Returns `nil` if the resource is not present.
public func cachedSummary(forResource resource: FHIRResource) async -> Summary? {
await resourceProcesser.results[resource.id]
public func cachedSummary(forResource resource: FHIRResource) -> Summary? {
resourceProcesser.results[resource.id]
}
}

Expand Down

0 comments on commit b58ba7a

Please sign in to comment.