Skip to content

Commit 8ffb37f

Browse files
committed
remove another extra tick
1 parent f917255 commit 8ffb37f

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

src/execution/execute.ts

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2144,17 +2144,15 @@ function firstAsyncStreamItems(
21442144
): StreamItemsRecord {
21452145
const firstStreamItems: StreamItemsRecord = {
21462146
streamRecord,
2147-
result: Promise.resolve().then(() =>
2148-
getNextAsyncStreamItemsResult(
2149-
streamRecord,
2150-
path,
2151-
initialIndex,
2152-
asyncIterator,
2153-
exeContext,
2154-
fieldGroup,
2155-
info,
2156-
itemType,
2157-
),
2147+
result: getNextAsyncStreamItemsResult(
2148+
streamRecord,
2149+
path,
2150+
initialIndex,
2151+
asyncIterator,
2152+
exeContext,
2153+
fieldGroup,
2154+
info,
2155+
itemType,
21582156
),
21592157
};
21602158
return firstStreamItems;

0 commit comments

Comments
 (0)