Get rid of typed emitter
This commit is contained in:
@@ -1,12 +1,14 @@
|
||||
import {throttle} from "@welshman/lib"
|
||||
import {verifyEvent, isEphemeralKind, isDVMKind} from "@welshman/util"
|
||||
import {Repository} from "@welshman/relay"
|
||||
import {Repository, LocalRelay} from "@welshman/relay"
|
||||
import {Pool, Tracker, SocketEvent, isRelayEvent} from "@welshman/net"
|
||||
import {custom} from "@welshman/store"
|
||||
import {loadRelay, trackRelayStats} from "./relays.js"
|
||||
|
||||
export const repository = Repository.getSingleton()
|
||||
|
||||
export const relay = new LocalRelay(repository)
|
||||
|
||||
export const tracker = new Tracker()
|
||||
|
||||
Pool.getSingleton().subscribe(socket => {
|
||||
|
||||
@@ -26,6 +26,7 @@ export type ThunkRequest = {
|
||||
event: ThunkEvent
|
||||
relays: string[]
|
||||
delay?: number
|
||||
timeout?: number
|
||||
context?: AdapterContext
|
||||
}
|
||||
|
||||
@@ -226,6 +227,7 @@ export const thunkQueue = new TaskQueue<Thunk>({
|
||||
event: signedEvent,
|
||||
relays: thunk.request.relays,
|
||||
context: thunk.request.context,
|
||||
timeout: thunk.request.timeout,
|
||||
})
|
||||
|
||||
// Copy the signature over since we had deferred it
|
||||
|
||||
Reference in New Issue
Block a user