summaryrefslogtreecommitdiffhomepage
path: root/HTTP
diff options
context:
space:
mode:
authorJoey Hess <joeyh@joeyh.name>2016-09-14 15:04:19 -0400
committerJoey Hess <joeyh@joeyh.name>2016-09-14 15:04:19 -0400
commit6a687943b209e8a8bc391268149f6f443d5cccbb (patch)
treec4d8afef5443b508550a703fee729800345ce3ef /HTTP
parent98aca70641905000e2104d456c8f24677e31ef75 (diff)
downloadkeysafe-6a687943b209e8a8bc391268149f6f443d5cccbb.tar.gz
constructed the bloom filter wrong
Diffstat (limited to 'HTTP')
-rw-r--r--HTTP/RateLimit.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/HTTP/RateLimit.hs b/HTTP/RateLimit.hs
index 39d7dbc..b90d282 100644
--- a/HTTP/RateLimit.hs
+++ b/HTTP/RateLimit.hs
@@ -114,7 +114,7 @@ mkBloomFilter = do
-- Size the bloom filter to hold 1 million items, with a false
-- positive rate of 1 in 100 thousand. This will use around 32 mb
-- of memory.
- (bloomhashes, bloomsize) = suggestSizing bloomMaxSize (1/100000)
+ (bloomsize, bloomhashes) = suggestSizing bloomMaxSize (1/100000)
-- | Maximum number of RequestIDs that can be stored in a bloom filter
-- without the false positive rate getting bad.