From 6a687943b209e8a8bc391268149f6f443d5cccbb Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 14 Sep 2016 15:04:19 -0400 Subject: constructed the bloom filter wrong --- HTTP/RateLimit.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'HTTP') 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. -- cgit v1.2.3