mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-05-17 20:34:38 +00:00
improve logging in background sync
This commit is contained in:
parent
1a52975f4d
commit
c5ed175944
1 changed files with 2 additions and 2 deletions
|
@ -183,9 +183,9 @@ class BackgroundSync {
|
|||
final lastTriggerDate = lastTriggerString != null
|
||||
? DateTime.parse(lastTriggerString)
|
||||
: DateTime.now();
|
||||
|
||||
final keys = sharedPreferences.getKeys();
|
||||
if (tx.date.isBefore(lastTriggerDate)) {
|
||||
printV("TX ${tx.date} is before $lastTriggerDate");
|
||||
printV("w: ${wallet.name}, tx: ${tx.date} is before $lastTriggerDate (lastTriggerString: $lastTriggerString) (k: ${keys.length})");
|
||||
continue;
|
||||
}
|
||||
await sharedPreferences.setString(PreferencesKey.backgroundSyncLastTrigger(wallet.name), tx.date.add(Duration(minutes: 1)).toIso8601String());
|
||||
|
|
Loading…
Reference in a new issue