This commit is contained in:
Hailey
2025-09-11 00:23:00 -07:00
parent 535c19ad86
commit 450611ab2c
3 changed files with 1 additions and 4 deletions
-2
View File
@@ -104,7 +104,6 @@ export class SafelinkClient {
this.urlCache.set(url, maybeUrlRule)
addMetrics('ok', false)
return maybeUrlRule
} catch (e) {
this.urlCache.set(url, 'ok')
@@ -115,7 +114,6 @@ export class SafelinkClient {
this.domainCache.set(domain, maybeDomainRule)
addMetrics('ok', false)
return maybeDomainRule
} catch (e) {
this.domainCache.set(domain, 'ok')
+1 -1
View File
@@ -74,6 +74,6 @@ export class Metrics {
async start(port: number) {
const server = this.app.listen(port)
await once(server, 'listening')
await once(server, 'metrics server listening')
}
}
-1
View File
@@ -98,7 +98,6 @@ export default function (ctx: AppContext, app: Express) {
}
addMetrics(ruleStr, 302)
return res.end(html)
}),
)