From 476c873a06b735602d23d9a80261b6ab6ca65ea8 Mon Sep 17 00:00:00 2001 From: Jordan Cook Date: Tue, 24 Jan 2023 13:49:50 -0600 Subject: Fix example with requests-ratelimiter --- docs/user_guide/compatibility.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'docs') diff --git a/docs/user_guide/compatibility.md b/docs/user_guide/compatibility.md index a2b3fdb..3ecb809 100644 --- a/docs/user_guide/compatibility.md +++ b/docs/user_guide/compatibility.md @@ -85,10 +85,11 @@ _after_ caching, you get the added benefit of not counting cache hits against yo >>> # Limit non-cached requests to 5 requests per second, with unlimited cached requests >>> # Optionally use Redis as both the bucket backend and the cache backend >>> session = CachedLimiterSession( -... rates=RequestRate(5, Duration.SECOND), +... per_second=5, ... bucket_class=RedisBucket, ... backend=RedisCache(), ... ) + ``` ## Internet Archive -- cgit v1.2.1