Session Cache Implementation

Nucleic-Session: B2346642-3353-4BD5-9DE2-A8B77BD66C98
Co-authored-by: Nucleic <[email protected]>
This commit is contained in:
2026-07-05 22:33:24 -07:00
co-authored by Nucleic
parent d0519e9ac3
commit 4ffa069191
@@ -59,7 +59,7 @@ enum SessionCache {
/// connects. Small (≤ `sessionLimit`), so a synchronous read is fine. /// connects. Small (≤ `sessionLimit`), so a synchronous read is fine.
static func loadSummaries() -> [WireSessionSummary] { static func loadSummaries() -> [WireSessionSummary] {
guard let url = summariesURL, let data = try? Data(contentsOf: url), guard let url = summariesURL, let data = try? Data(contentsOf: url),
let list = try? decoder.decode([WireSessionSummary].self, from: data) let list = try? JSONDecoder().decode([WireSessionSummary].self, from: data)
else { return [] } else { return [] }
return list return list
} }