rework context

This commit is contained in:
Jon Staab
2024-09-05 13:38:48 -07:00
parent 233a4e3576
commit 44f29c9da4
19 changed files with 157 additions and 138 deletions
+2 -3
View File
@@ -1,9 +1,8 @@
import {derived} from "svelte/store"
import {memoize, omit, equals, assoc} from "@welshman/lib"
import {ctx, memoize, omit, equals, assoc} from "@welshman/lib"
import {createEvent} from "@welshman/util"
import {withGetter, synced} from "@welshman/store"
import {type Nip46Handler} from "@welshman/signer"
import {NetworkContext} from "@welshman/net"
import {Nip46Broker, Nip46Signer, Nip07Signer, Nip01Signer} from "@welshman/signer"
export type Session = {
@@ -76,7 +75,7 @@ export const onAuth = async (url: string, challenge: string) => {
}),
)
NetworkContext.pool.get(url).send(["AUTH", event])
ctx.net.pool.get(url).send(["AUTH", event])
return event
}