Skip to content

Commit

Permalink
Reduce number of attempts to 3
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsenko committed Sep 23, 2022
1 parent 1a3478d commit 31a2a3c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions generator/lib/src/realm_object_generator.dart
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,10 @@ Future<ResolvedLibraryResult?> _getResolvedLibrary(LibraryElement library, Resol
if (someResult is ResolvedLibraryResult) return someResult;
} catch (_) {
++attempts;
if (attempts == 10) {
if (attempts == 3) {
// 3 is the magic number ¯\_(ツ)_/¯
log.severe('Internal error: Analysis session '
'did not stabilize after ten attempts!');
'did not stabilize after $attempts attempts!');
return null;
}
}
Expand Down

0 comments on commit 31a2a3c

Please sign in to comment.