mirror of
https://github.com/pockethost/pockethost.git
synced 2025-11-27 15:53:49 +00:00
chore: remove AsyncContext
This commit is contained in:
parent
a76566002d
commit
db2a47fd4a
@ -7,7 +7,6 @@ import {
|
||||
import { port as getPort, InstanceLogger } from '$services'
|
||||
import {
|
||||
assert,
|
||||
AsyncContext,
|
||||
asyncExitHook,
|
||||
mkInternalUrl,
|
||||
tryFetch,
|
||||
@ -67,7 +66,7 @@ export const createPocketbaseService = async (
|
||||
|
||||
const tm = createTimerManager({})
|
||||
|
||||
const _spawn = async (cfg: SpawnConfig, context?: AsyncContext) => {
|
||||
const _spawn = async (cfg: SpawnConfig) => {
|
||||
const cm = createCleanupManager()
|
||||
const logger = (context?.logger || _serviceLogger).create('spawn')
|
||||
const { dbg, warn, error } = logger
|
||||
|
||||
@ -1,5 +1,4 @@
|
||||
import { MixinContext } from '$services'
|
||||
import { AsyncContext } from '$util'
|
||||
import {
|
||||
INSTANCE_COLLECTION,
|
||||
InstanceFields,
|
||||
@ -56,7 +55,6 @@ export const createInstanceMixin = (context: MixinContext) => {
|
||||
|
||||
const getInstanceById = async (
|
||||
instanceId: InstanceId,
|
||||
context?: AsyncContext,
|
||||
): Promise<[InstanceFields, UserFields] | []> =>
|
||||
client
|
||||
.collection(INSTANCE_COLLECTION)
|
||||
|
||||
@ -1,5 +0,0 @@
|
||||
import { Logger } from '@pockethost/common'
|
||||
|
||||
export type AsyncContext = {
|
||||
logger: Logger
|
||||
}
|
||||
@ -1,4 +1,3 @@
|
||||
export * from './AsyncContext'
|
||||
export * from './PromiseAllocator'
|
||||
export * from './assert'
|
||||
export * from './downloadAndExtract'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user