Skip to content

Commit

Permalink
fix mistake in retrying combinator
Browse files Browse the repository at this point in the history
  • Loading branch information
giantimi committed Oct 13, 2023
1 parent 31c50cf commit 6022a7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exec/TXG.hs
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ loop confDepth tcut f = forever $ do
case confTrackMempoolStat config of
Nothing -> pure ()
Just p -> do
let retrier = retrying policy (const (pure . isRight)) . const
let retrier = retrying policy (const (pure . isLeft)) . const
policy :: Monad m => RetryPolicyM m
policy =
exponentialBackoff (pollExponentialBackoffInitTime p)
Expand Down

0 comments on commit 6022a7d

Please sign in to comment.