packages feed

wai-rate-limit-postgres 0.2.0.0 → 0.3.0.0

raw patch · 3 files changed

+5/−3 lines, 3 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

CHANGELOG.md view
@@ -3,6 +3,10 @@ `wai-rate-limit-postgres` uses [PVP Versioning][1]. The changelog is available [on GitHub][2]. +## 0.3.0.0++* Removed unnecessary debug prints+ ## 0.2.0.0  * Fix bug in table name reference (#1)
src/Network/Wai/RateLimit/Postgres.hs view
@@ -86,7 +86,6 @@ pgBackendIncAndGetUsage :: Pool PG.Connection -> Text -> ByteString -> Integer -> IO (Either PGBackendError Integer) pgBackendIncAndGetUsage p tableName key usage = withResource p $ \c -> do   res <- try $ PG.query c incAndGetQuery (key, usage) `catches` sqlHandlers-  print res   return $ do     rows <- res     case rows of@@ -110,7 +109,6 @@  pgBackendExpireIn :: Pool PG.Connection -> Text -> ByteString -> Integer -> IO (Either PGBackendError ()) pgBackendExpireIn p tableName key seconds = withResource p $ \c -> do-  putText "Called expire in!"   res <- try $ PG.execute c expireInQuery (seconds, key) `catches` sqlHandlers   return $ do     count <- res
wai-rate-limit-postgres.cabal view
@@ -1,6 +1,6 @@ cabal-version:       3.0 name:                wai-rate-limit-postgres-version:             0.2.0.0+version:             0.3.0.0 category:            Security, Web, Network synopsis:            See README for more info description: