Rest API - Rate Limiting and Throttling
Identify the logical error in this per-IP rate limiting pseudocode:
requests = {"123.45.67.89": 4}
limit = 5
ip = "123.45.67.89"
if requests[ip] > limit:
block()
else:
allow()
requests[ip] += 1