Session Cache Implementation
Nucleic-Session: B2346642-3353-4BD5-9DE2-A8B77BD66C98 Co-authored-by: Nucleic <[email protected]>
This commit is contained in:
@@ -59,7 +59,7 @@ enum SessionCache {
|
||||
/// connects. Small (≤ `sessionLimit`), so a synchronous read is fine.
|
||||
static func loadSummaries() -> [WireSessionSummary] {
|
||||
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 [] }
|
||||
return list
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user