MCPcopy Index your code
hub / github.com/sourcebot-dev/sourcebot / fetchFn

Function fetchFn

packages/backend/src/gitlab.ts:60–62  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

58 logger.debug(`Fetching all projects visible in ${config.url}...`);
59 const { durationMs, data: _projects } = await measure(async () => {
60 const fetchFn = () => api.Projects.all({
61 perPage: 100,
62 });
63 return fetchWithRetry(fetchFn, `all projects in ${config.url}`, logger);
64 });
65 logger.debug(`Found ${_projects.length} projects in ${durationMs}ms.`);

Callers 3

fetchWithRetryFunction · 0.70
fetchJsonFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected