diff --git a/src/content/docs/workers/runtime-apis/bindings/rate-limit.mdx b/src/content/docs/workers/runtime-apis/bindings/rate-limit.mdx index f41796d5b507a81..0b56e2acc8b04bb 100644 --- a/src/content/docs/workers/runtime-apis/bindings/rate-limit.mdx +++ b/src/content/docs/workers/runtime-apis/bindings/rate-limit.mdx @@ -32,7 +32,6 @@ main = "src/index.js" [[ratelimits]] name = "MY_RATE_LIMITER" -type = "ratelimit" # An identifier you define, that is unique to your Cloudflare account. # Must be an integer. namespace_id = "1001" @@ -106,14 +105,12 @@ main = "src/index.js" # Free user rate limiting [[ratelimits]] name = "FREE_USER_RATE_LIMITER" -type = "ratelimit" namespace_id = "1001" simple = { limit = 100, period = 60 } # Paid user rate limiting [[ratelimits]] name = "PAID_USER_RATE_LIMITER" -type = "ratelimit" namespace_id = "1002" simple = { limit = 1000, period = 60 } ``` @@ -130,14 +127,11 @@ A rate limiting binding has three settings: For example, to apply a rate limit of 1500 requests per minute, you would define a rate limiting configuration as follows: - - ```toml [[ratelimits]] name = "MY_RATE_LIMITER" -type = "ratelimit" namespace_id = "1001" # 1500 requests - calls to limit() increment this