mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 06:50:43 +00:00
perf(gateway): lazy load deferred plugin bootstrap
This commit is contained in:
@@ -53,7 +53,6 @@ import { GATEWAY_EVENTS } from "./server-methods-list.js";
|
||||
import { coreGatewayHandlers } from "./server-methods.js";
|
||||
import { loadGatewayModelCatalog } from "./server-model-catalog.js";
|
||||
import { createGatewayNodeSessionRuntime } from "./server-node-session-runtime.js";
|
||||
import { reloadDeferredGatewayPlugins } from "./server-plugin-bootstrap.js";
|
||||
import { setFallbackGatewayContextResolver } from "./server-plugins.js";
|
||||
import { startManagedGatewayConfigReloader } from "./server-reload-handlers.js";
|
||||
import { createGatewayRequestContext } from "./server-request-context.js";
|
||||
@@ -764,6 +763,7 @@ export async function startGatewayServer(
|
||||
|
||||
if (!minimalTestGateway) {
|
||||
if (deferredConfiguredChannelPluginIds.length > 0) {
|
||||
const { reloadDeferredGatewayPlugins } = await import("./server-plugin-bootstrap.js");
|
||||
({ pluginRegistry, gatewayMethods: baseGatewayMethods } = reloadDeferredGatewayPlugins({
|
||||
cfg: gatewayPluginConfigAtStart,
|
||||
workspaceDir: defaultWorkspaceDir,
|
||||
|
||||
Reference in New Issue
Block a user