-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
pyrossh
committed
Dec 3, 2023
1 parent
2b22eec
commit 4c08a95
Showing
1 changed file
with
1 addition
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,6 @@ | ||
import { FreshContext } from "$fresh/server.ts"; | ||
import { createReporter } from "https://deno.land/x/g_a/mod.ts"; | ||
|
||
const report = createReporter({ | ||
id: "UA-31541587-1", | ||
}); | ||
|
||
export async function handler(req: Request, ctx: FreshContext) { | ||
const start = performance.now(); | ||
export async function handler(_req: Request, ctx: FreshContext) { | ||
const resp = await ctx.next(); | ||
report(req, { remoteAddr: ctx.remoteAddr }, resp, start, null); | ||
return resp; | ||
} |