Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
Andrey Sobolev
2023-02-15 09:14:20 +06:00
committed by GitHub
parent aa8530d678
commit 199da5077a
71 changed files with 888 additions and 312 deletions
+5 -4
View File
@@ -112,20 +112,21 @@ export async function connect (handler: (tx: Tx) => void): Promise<ClientConnect
url: ''
}
},
metrics: new MeasureMetricsContext('', {}),
fulltextAdapter: {
factory: createNullFullTextAdapter,
url: '',
metrics: new MeasureMetricsContext('', {}),
stages: () => []
},
contentAdapter: {
url: '',
factory: createNullContentTextAdapter,
metrics: new MeasureMetricsContext('', {})
factory: createNullContentTextAdapter
},
workspace: getWorkspaceId('')
}
const serverStorage = await createServerStorage(conf)
const serverStorage = await createServerStorage(conf, {
upgrade: false
})
setMetadata(devmodel.metadata.DevModel, serverStorage)
return new ServerStorageWrapper(serverStorage, handler)
}
+3 -4
View File
@@ -63,17 +63,16 @@ export async function start (port: number, host?: string): Promise<void> {
fulltextAdapter: {
factory: createNullFullTextAdapter,
url: '',
metrics: new MeasureMetricsContext('', {}),
stages: () => []
},
metrics: new MeasureMetricsContext('', {}),
contentAdapter: {
url: '',
factory: createNullContentTextAdapter,
metrics: new MeasureMetricsContext('', {})
factory: createNullContentTextAdapter
},
workspace: getWorkspaceId('')
}
return createPipeline(conf, [], false)
return createPipeline(conf, [], false, () => {})
},
(token, pipeline, broadcast) => new ClientSession(broadcast, token, pipeline),
port,