From 3846dc2f5dee69fc4ffbc052009a60e17d60e36b Mon Sep 17 00:00:00 2001 From: Christian Cleberg Date: Tue, 21 Apr 2026 23:21:19 -0500 Subject: feat(v2.5.0): add caching, request deduplication, and performance improvements --- LookupSnapshot.swift | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'LookupSnapshot.swift') diff --git a/LookupSnapshot.swift b/LookupSnapshot.swift index 3a35eff..dd1e5f4 100644 --- a/LookupSnapshot.swift +++ b/LookupSnapshot.swift @@ -39,7 +39,13 @@ struct LookupSnapshot { let portScanResults: [PortScanResult] let portScanError: String? let changeSummary: DomainChangeSummary? - let isLive: Bool + let resultSource: LookupResultSource + let cachedSections: [LookupSectionKind] + let statusMessage: String? + + var isLive: Bool { + resultSource == .live + } } extension HistoryEntry { @@ -83,7 +89,9 @@ extension HistoryEntry { portScanResults: portScanResults, portScanError: portScanError, changeSummary: changeSummary, - isLive: false + resultSource: .snapshot, + cachedSections: [], + statusMessage: nil ) } } -- cgit v1.2.3