Merge pull request #346 from cypherstack/paynyms

Paynyms
This commit is contained in:
Diego Salazar 2023-02-10 18:37:29 -07:00 committed by GitHub
commit 813a09cb70
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 13 additions and 4 deletions

View file

@ -32,6 +32,7 @@ class MainDB {
// inspector: kDebugMode,
inspector: false,
name: "wallet_data",
maxSizeMiB: 512,
);
return true;
}

View file

@ -106,6 +106,7 @@ void main() async {
[LogSchema],
directory: (await StackFileSystem.applicationIsarDirectory()).path,
inspector: false,
maxSizeMiB: 512,
);
await Logging.instance.init(isar);
await DebugService.instance.init(isar);

View file

@ -48,9 +48,10 @@ class ExchangeDataLoadingService {
PairSchema,
],
directory: (await StackFileSystem.applicationIsarDirectory()).path,
inspector: kDebugMode,
// inspector: false,
// inspector: kDebugMode,
inspector: false,
name: "exchange_cache",
maxSizeMiB: 256,
);
}
@ -114,12 +115,16 @@ class ExchangeDataLoadingService {
try {
await Future.wait([
_loadChangeNowCurrencies(),
_loadChangeNowFixedRatePairs(),
_loadChangeNowEstimatedRatePairs(),
// _loadChangeNowFixedRatePairs(),
// _loadChangeNowEstimatedRatePairs(),
// loadSimpleswapFixedRateCurrencies(ref),
// loadSimpleswapFloatingRateCurrencies(ref),
loadMajesticBankCurrencies(),
]);
await _loadChangeNowFixedRatePairs();
await _loadChangeNowEstimatedRatePairs();
Logging.instance.log(
"ExchangeDataLoadingService.loadAll finished in ${DateTime.now().difference(start).inSeconds} seconds",
level: LogLevel.Info,

View file

@ -62,6 +62,7 @@ class DesktopSecureStore {
directory: (await StackFileSystem.applicationIsarDirectory()).path,
inspector: false,
name: "desktopStore",
maxSizeMiB: 512,
);
}

View file

@ -35,6 +35,7 @@ class Logging {
isar = await Isar.open(
[LogSchema],
inspector: false,
maxSizeMiB: 512,
);
}