nit
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
export OZONE_AGENT_HANDLE="mod-authority.test"
|
||||
export OZONE_AGENT_PASS="hunter2"
|
||||
|
||||
export OZONE_URL=http://localhost:2583
|
||||
export OZONE_DID=ANY_TIME_YOU_RELAUNCH_ATPROTO_THIS_MUST_BE_DONE_AGAIN
|
||||
|
||||
export LINK_DB_POSTGRES_URL=postgres://pg:password@localhost:5433/link_db
|
||||
export SAFELINK_ENABLED=true
|
||||
|
||||
node dist/bin.js
|
||||
Vendored
+1
-3
@@ -18,7 +18,7 @@ export class SafelinkClient {
|
||||
|
||||
private ozoneAgent: OzoneAgent
|
||||
|
||||
private cursor: string
|
||||
private cursor?: string
|
||||
|
||||
constructor({cfg, db}: {cfg: ServiceConfig; db: Database}) {
|
||||
this.domainCache = new LRUCache<string, SafelinkRule | 'ok'>({
|
||||
@@ -36,8 +36,6 @@ export class SafelinkClient {
|
||||
cfg.ozoneAgentHandle!,
|
||||
cfg.ozoneAgentPass!,
|
||||
)
|
||||
|
||||
this.cursor = ''
|
||||
}
|
||||
|
||||
public async tryFindRule(link: string): Promise<SafelinkRule | 'ok'> {
|
||||
|
||||
Reference in New Issue
Block a user