Skip to content

Commit

Permalink
Clarify final sync comments/logging HT Alejandro Palaez
Browse files Browse the repository at this point in the history
  • Loading branch information
bartelink committed Jan 20, 2020
1 parent aa199f9 commit dacd431
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Equinox/Flow.fs
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,11 @@ module internal Flow =
log.Debug "No events generated"
return result
elif attempt = maxSyncAttempts then
log.Debug "Max Sync Attempts exceeded"
// Special case: on final attempt, we won't be `resync`ing; we're giving up
let! committed = syncState.TryOr(log, events, fun _resync -> async { return false })

if not committed then
log.Debug "Max Sync Attempts exceeded"
return raise (createMaxAttemptsExhaustedException attempt)
else
return result
Expand Down

0 comments on commit dacd431

Please sign in to comment.