Skip to content

Commit 883fe3f

Browse files
committed
refactor: Move sleep function to its own file
1 parent 55a3309 commit 883fe3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/rate-limit.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import { sleep } from "bun"
21
import consola from "consola"
32

43
import type { State } from "./state"
54

65
import { HTTPError } from "./http-error"
6+
import { sleep } from "./sleep"
77

88
export async function checkRateLimit(state: State) {
99
if (state.rateLimitSeconds === undefined) return

0 commit comments

Comments
 (0)