Skip to content

Commit ed174c9

Browse files
Fix retryIf example in README
1 parent 00f463b commit ed174c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ import Database.PostgreSQL.Simple.Errors (isSerializationError)
239239
main :: IO ()
240240
main = withPostgresqlPool "..." 5 $ \pool -> do
241241
let env = mkSqlQueryEnv pool $ \env -> env
242-
{ retryIf = isSerializationError . fromException
242+
{ retryIf = maybe False isSerializationError . fromException
243243
, retryLimit = 100 -- defaults to 10
244244
}
245245

0 commit comments

Comments
 (0)