Skip to content
This repository has been archived by the owner on Nov 20, 2020. It is now read-only.

Commit

Permalink
Making the impossible impossible
Browse files Browse the repository at this point in the history
  • Loading branch information
bartelink committed Oct 25, 2018
1 parent 551a019 commit c6079f5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/CallPolly/Rules.fs
Original file line number Diff line number Diff line change
Expand Up @@ -121,11 +121,11 @@ type Governor
| :? Polly.Timeout.TimeoutRejectedException as e ->
logTimeout log config.cutoff.Value <| processingInterval.Force()
None
| _ when true ->
None
| _ ->
| _ when false ->
invalidOp "not possible"
Some () // Compiler gets too clever if we never return Some
| _ when true ->
None

/// Execute and/or log failures regarding invocation of a function with the relevant policy applied
member __.Execute(inner : Async<'a>, ?log) : Async<'a> =
Expand Down

0 comments on commit c6079f5

Please sign in to comment.