MCPcopy Create free account
hub / github.com/error311/FileRise / getCountTimeoutMs

Function getCountTimeoutMs

public/js/folderManager.js:903–907  ·  view source on GitHub ↗
(sourceId = '')

Source from the content-addressed store, hash-verified

901let _activeCountReqs = 0;
902const _countReqQueue = [];
903function getCountTimeoutMs(sourceId = '') {
904 const type = String(getSourceTypeById(sourceId || getActiveSourceId()) || '').toLowerCase();
905 if (type && type !== 'local') return 6000;
906 return 2500;
907}
908function _runCount(url, timeoutMs) {
909 return new Promise(resolve => {
910 const start = () => {

Callers 1

fetchFolderCountsFunction · 0.85

Calls 2

getSourceTypeByIdFunction · 0.70
getActiveSourceIdFunction · 0.70

Tested by

no test coverage detected