Skip to content
Snippets Groups Projects
Commit 9eb9befb authored by vjrj's avatar vjrj
Browse files

Contact init early and less transactions fetch in dev

parent 7d164744
No related branches found
No related tags found
No related merge requests found
......@@ -75,6 +75,8 @@ void main() async {
await HydratedStorage.build(storageDirectory: tmpDir);
}
ContactsCache().init();
// Reset hive during developing
if (!kReleaseMode) {
// Once.clearAll();
......@@ -286,12 +288,11 @@ class _GinkgoAppState extends State<GinkgoApp> {
@override
void initState() {
super.initState();
ContactsCache().init();
NodeManager().loadFromCubit(context.read<NodeListCubit>());
// Only after at least the action method is set, the notification events are delivered
NotificationController.startListeningNotificationEvents();
final Cron cron = Cron();
cron.schedule(Schedule.parse(kReleaseMode ? '*/10 * * * *' : '*/2 * * * *'),
cron.schedule(Schedule.parse(kReleaseMode ? '*/10 * * * *' : '*/5 * * * *'),
() async {
logger('---------- fetchTransactions via cron');
fetchTransactions(context);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment