Skip to content

Commit

Permalink
fix: gateway get rate limit state function env (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
vasco-santos authored Apr 16, 2022
1 parent 7b1ffaf commit 3fae246
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/edge-gateway/src/gateway.js
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ async function getGatewayRateLimitState(request, env) {
env.log.log(err, 'error')
// Just force no prevention of rate limit
const shouldPreventRateLimit = {}
this.ipfsGateways.forEach((gwUrl) => {
env.ipfsGateways.forEach((gwUrl) => {
shouldPreventRateLimit[gwUrl] = false
})
return shouldPreventRateLimit
Expand Down

0 comments on commit 3fae246

Please sign in to comment.