Skip to content

Commit

Permalink
add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
stevensJourney committed Jun 24, 2024
1 parent 978bf78 commit f16223f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion service/src/runners/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,12 @@ export async function startServer(runnerConfig: core.utils.RunnerConfig) {

const server = fastify.fastify();

// Create a separate context for concurrency queueing
/**
* Fastify creates an encapsulated context for each `.register` call.
* Creating a separate context here to separate the concurrency limits for Admin APIs
* and Sync Streaming routes.
* https://github.com/fastify/fastify/blob/main/docs/Reference/Encapsulation.md
*/
server.register(async function (childContext) {
core.routes.registerFastifyRoutes(
childContext,
Expand Down

0 comments on commit f16223f

Please sign in to comment.