MCPcopy Create free account
hub / github.com/dailydotdev/apps / fallbackToSingleRequests

Function fallbackToSingleRequests

packages/shared/src/graphql/batch.ts:121–125  ·  view source on GitHub ↗
(items: BatchItem[])

Source from the content-addressed store, hash-verified

119// A server without batching answers the array body with a plain object, so the
120// items are retried one by one and the session stops sending arrays.
121const fallbackToSingleRequests = async (items: BatchItem[]): Promise<void> => {
122 setGqlBatchingEnabled(false);
123
124 await Promise.all(items.map(requestSingle));
125};
126
127const flush = async (): Promise<void> => {
128 flushHandle = undefined;

Callers 1

flushFunction · 0.85

Calls 1

setGqlBatchingEnabledFunction · 0.85

Tested by

no test coverage detected