Skip to content

Commit

Permalink
Remove syncAttempt from log when : 1 Fixes #11
Browse files Browse the repository at this point in the history
  • Loading branch information
bartelink committed Oct 23, 2017
1 parent f41e084 commit f2991dc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Foldunk/Foldunk.fs
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,7 @@ module private Flow =
if maxSyncAttempts < 1 then raise <| System.ArgumentOutOfRangeException("maxSyncAttempts", maxSyncAttempts, "should be >= 1")
/// Run a decision cycle - decide what events should be appended given the presented state
let rec loop attempt: Async<'result> = async {
//let token, currentState = interpreter.Fold currentState
let log = log.ForContext("syncAttempt", attempt)
let log = if attempt = 1 then log else log.ForContext("syncAttempt", attempt)
let ctx = sync.CreateContext()
let! outcome, events = decide ctx
if List.isEmpty events then
Expand Down

0 comments on commit f2991dc

Please sign in to comment.