From 35d8976a3a21642675af17205f221a2c4eb3f756 Mon Sep 17 00:00:00 2001 From: Ruben Bartelink Date: Sat, 18 Jan 2020 10:25:53 +0000 Subject: [PATCH] Clarify final sync comments/logging HT Alejandro Palaez --- src/Equinox/Flow.fs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Equinox/Flow.fs b/src/Equinox/Flow.fs index 35ff64a69..dbc9d3fce 100644 --- a/src/Equinox/Flow.fs +++ b/src/Equinox/Flow.fs @@ -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