Remove context onOk

This commit is contained in:
Jon Staab
2024-10-14 13:17:09 -07:00
parent df0ad3e7f2
commit e025a8de36
2 changed files with 0 additions and 8 deletions
-6
View File
@@ -101,12 +101,6 @@ export class Connection extends Emitter {
ctx.net.onAuth(this.url, challenge)
}
if (verb === 'OK') {
const [id, ok, message] = extra
ctx.net.onOk(this.url, id, ok, message)
}
this.emit('receive', this, message)
}
-2
View File
@@ -11,7 +11,6 @@ export type NetContext = {
getExecutor: (relays: string[]) => Executor
onEvent: (url: string, event: TrustedEvent) => void
onAuth: (url: string, challenge: string) => void
onOk: (url: string, id: string, ok: boolean, message: string) => void
isDeleted: (url: string, event: TrustedEvent) => boolean
isValid: (url: string, event: TrustedEvent) => boolean
matchFilters: (url: string, filters: Filter[], event: TrustedEvent) => boolean
@@ -28,7 +27,6 @@ export const defaultOptimizeSubscriptions = (subs: Subscription[]) =>
})
export const getDefaultNetContext = (overrides: Partial<NetContext> = {}) => ({
onOk: noop,
onAuth: noop,
onEvent: noop,
pool: new Pool(),