MCPcopy Create free account
hub / github.com/RioArisk/claudecode_api_RemoteControl / startUploadCleanup

Function startUploadCleanup

lib/image-upload.js:539–548  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

537}
538
539function startUploadCleanup() {
540 setInterval(() => {
541 const now = Date.now();
542 for (const [uploadId, upload] of state.pendingImageUploads) {
543 if ((upload.updatedAt || 0) < (now - IMAGE_UPLOAD_TTL_MS)) {
544 cleanupImageUpload(uploadId);
545 }
546 }
547 }, 60 * 1000).unref();
548}
549
550module.exports = {
551 createTempImageFile,

Callers 1

server.jsFile · 0.85

Calls 1

cleanupImageUploadFunction · 0.85

Tested by

no test coverage detected