TF-1115 Implement catch exception for StateDataSource

This commit is contained in:
dab246
2022-10-28 12:10:45 +07:00
committed by Dat H. Pham
parent a552b073c1
commit 6a9f36396b
8 changed files with 12 additions and 10 deletions
@@ -91,7 +91,7 @@ class ThreadBindings extends BaseBindings {
Get.find<ThreadIsolateWorker>(),
Get.find<RemoteExceptionThrower>()));
Get.lazyPut(() => LocalThreadDataSourceImpl(Get.find<EmailCacheManager>()));
Get.lazyPut(() => StateDataSourceImpl(Get.find<StateCacheClient>()));
Get.lazyPut(() => StateDataSourceImpl(Get.find<StateCacheClient>(), Get.find<CacheExceptionThrower>()));
Get.lazyPut(() => EmailDataSourceImpl(
Get.find<EmailAPI>(),
Get.find<RemoteExceptionThrower>()));