mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-20 09:32:19 +00:00
chore: generate
This commit is contained in:
parent
801e4a8a9d
commit
3f07dffbb0
1 changed files with 1 additions and 3 deletions
|
|
@ -7,9 +7,7 @@ import { ZenData } from "@opencode-ai/console-core/model.js"
|
|||
export function createRateLimiter(limit: ZenData.RateLimit | undefined, rawIp: string, headers: Headers) {
|
||||
if (!limit) return
|
||||
|
||||
const limitValue = (limit.checkHeader && !headers.get(limit.checkHeader))
|
||||
? limit.fallbackValue!
|
||||
: limit.value
|
||||
const limitValue = limit.checkHeader && !headers.get(limit.checkHeader) ? limit.fallbackValue! : limit.value
|
||||
|
||||
const ip = !rawIp.length ? "unknown" : rawIp
|
||||
const now = Date.now()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue