Skip to content

Commit

Permalink
Fix formatting and typo in MapSourceToResponseEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
benjie committed Dec 15, 2023
1 parent a303f0c commit 8536e49
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/algorithm-format-check.mjs
Expand Up @@ -100,7 +100,7 @@ for (const filename of filenames) {
console.dir(line);
console.dir(nextLine);
console.log();
// TODO: process.exitCode = 1;
process.exitCode = 1;
}
}
}
Expand Down
10 changes: 5 additions & 5 deletions spec/Section 6 -- Execution.md
Expand Up @@ -290,11 +290,11 @@ subscription selection set using that event as a root value.
MapSourceToResponseEvent(sourceStream, subscription, schema, variableValues):

- Return a new event stream {responseStream} which yields events as follows:
- For each {event} on {sourceStream}:
- Let {response} be the result of running
{ExecuteSubscriptionEvent(subscription, schema, variableValues, event)}.
- Yield an event containing {response}.
- When {responseStream} completes: complete this event stream.
- For each {event} on {sourceStream}:
- Let {response} be the result of running
{ExecuteSubscriptionEvent(subscription, schema, variableValues, event)}.
- Yield an event containing {response}.
- If and when {sourceStream} completes: complete {responseStream}.

ExecuteSubscriptionEvent(subscription, schema, variableValues, initialValue):

Expand Down

0 comments on commit 8536e49

Please sign in to comment.