openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
1 lines • 488 B
JavaScript
import{F as e}from"./attachment-processor.worker-subsystem-huypao6j.mjs";import{i as t,t as n}from"./attachment-processor.worker.js";async function runFileLogIOInWorker(r,i){let a=e(Symbol.for(`openclaw.fileLogWorker`),()=>({}),async e=>{await i(),await e.pool?.close(),e.pool=void 0});return await(a.pool??=new n({workerUrl:t(`fileLog`),workerClass:`writer`})).run(r,{inputBytes:Buffer.byteLength(r.file)+(r.type===`append`?Buffer.byteLength(r.payload):0)})}export{runFileLogIOInWorker};