Skip to content

Commit 73c3280

Browse files
author
Andrei Berlin
committed
Remove unsafe from Rate Limiting API bindings
1 parent cc8c0bb commit 73c3280

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/content/docs/workers/runtime-apis/bindings/rate-limit.mdx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ First, add a [binding](/workers/runtime-apis/bindings) to your Worker that gives
3030
```toml
3131
main = "src/index.js"
3232

33-
[[unsafe.bindings]]
3433
name = "MY_RATE_LIMITER"
3534
type = "ratelimit"
3635
# An identifier you define, that is unique to your Cloudflare account.
@@ -104,14 +103,12 @@ For example, here is how you can define two rate limiting configurations for fre
104103
main = "src/index.js"
105104

106105
# Free user rate limiting
107-
[[unsafe.bindings]]
108106
name = "FREE_USER_RATE_LIMITER"
109107
type = "ratelimit"
110108
namespace_id = "1001"
111109
simple = { limit = 100, period = 60 }
112110

113111
# Paid user rate limiting
114-
[[unsafe.bindings]]
115112
name = "PAID_USER_RATE_LIMITER"
116113
type = "ratelimit"
117114
namespace_id = "1002"
@@ -135,7 +132,6 @@ For example, to apply a rate limit of 1500 requests per minute, you would define
135132
<WranglerConfig>
136133

137134
```toml
138-
[[unsafe.bindings]]
139135
name = "MY_RATE_LIMITER"
140136
type = "ratelimit"
141137
namespace_id = "1001"

0 commit comments

Comments
 (0)