Bump cache to 600 posts

This commit is contained in:
Thomas Ricouard 2023-02-08 08:48:18 +01:00
parent eb0b1043c7
commit 970305210b

View file

@ -28,7 +28,7 @@ public actor TimelineCache {
func set(statuses: [Status], client: Client) async { func set(statuses: [Status], client: Client) async {
guard !statuses.isEmpty else { return } guard !statuses.isEmpty else { return }
let statuses = statuses.prefix(upTo: min(400, statuses.count - 1)).map { $0 } let statuses = statuses.prefix(upTo: min(600, statuses.count - 1)).map { $0 }
do { do {
let engine = storageFor(client) let engine = storageFor(client)
try await engine.removeAllData() try await engine.removeAllData()