Skip to content

Commit

Permalink
Start aggregation after app started for 15 seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
livid committed Aug 11, 2024
1 parent 60d0948 commit 9db8df6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions Planet/PlanetAppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,13 @@ class PlanetAppDelegate: NSObject, NSApplicationDelegate {
debugPrint("WalletConnect 2.0 Failed to prepare the connection: \(error)")
}
}

// Aggregate after app started for 15 seconds
DispatchQueue.main.asyncAfter(deadline: .now() + 15) {
Task.detached(priority: .background) {
await PlanetStore.shared.aggregate()
}
}
}

func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool {
Expand Down
2 changes: 1 addition & 1 deletion Planet/versioning.xcconfig
Original file line number Diff line number Diff line change
@@ -1 +1 @@
CURRENT_PROJECT_VERSION = 2202
CURRENT_PROJECT_VERSION = 2203

0 comments on commit 9db8df6

Please sign in to comment.