Skip to content

Commit

Permalink
fix: issues
Browse files Browse the repository at this point in the history
  • Loading branch information
AhsanRns committed Apr 16, 2024
1 parent 3707ca8 commit 7d822ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wallet/lib/services/data_stores/remote_data_store.dart
Original file line number Diff line number Diff line change
Expand Up @@ -891,7 +891,7 @@ class RemoteDataStoreImp implements RemoteDataStore {
@override
Future<pylons.Recipe> getRecipe({required CookbookId cookBookId, required RecipeId recipeId}) async {
try {
const r = RetryOptions(maxAttempts: 8);
const r = RetryOptions();
final response = await r.retry(
() async{
final pylons.QueryClient queryClient = getQueryClient();
Expand All @@ -902,7 +902,7 @@ class RemoteDataStoreImp implements RemoteDataStore {
return thisRecipe;
},
// Retry on Exception or RecipeNotFoundFailure
retryIf: (e) => e is Exception || e is RecipeNotFoundFailure,
retryIf: (e) => true,
);

if (response.hasRecipe()) {
Expand Down

0 comments on commit 7d822ab

Please sign in to comment.