mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-28 05:16:23 -06:00
chore(deadcode): remove unused main-lane queue wrapper
This commit is contained in:
@@ -4,8 +4,8 @@ import {
|
||||
logLaneDequeue,
|
||||
logLaneEnqueue,
|
||||
} from "../logging/diagnostic-runtime.js";
|
||||
import { clampPositiveTimerTimeoutMs } from "../shared/number-coercion.js";
|
||||
import { resolveGlobalSingleton } from "../shared/global-singleton.js";
|
||||
import { clampPositiveTimerTimeoutMs } from "../shared/number-coercion.js";
|
||||
import type { CommandQueueEnqueueOptions } from "./command-queue.types.js";
|
||||
import { CommandLane } from "./lanes.js";
|
||||
/**
|
||||
@@ -507,13 +507,6 @@ export function enqueueCommandInLane<T>(
|
||||
});
|
||||
}
|
||||
|
||||
export function enqueueCommand<T>(
|
||||
task: () => Promise<T>,
|
||||
opts?: CommandQueueEnqueueOptions,
|
||||
): Promise<T> {
|
||||
return enqueueCommandInLane(CommandLane.Main, task, opts);
|
||||
}
|
||||
|
||||
export function getQueueSize(lane: string = CommandLane.Main) {
|
||||
const resolved = normalizeLane(lane);
|
||||
const state = getQueueState().lanes.get(resolved);
|
||||
|
||||
Reference in New Issue
Block a user