Skip to content
This repository was archived by the owner on Oct 22, 2025. It is now read-only.

Commit a81a9a7

Browse files
committed
chore: fmt
1 parent 74179c3 commit a81a9a7

File tree

3 files changed

+18
-9
lines changed

3 files changed

+18
-9
lines changed

examples/smoke-test/src/smoke-test/spawn-actor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export async function spawnActor({
4343
await counter2.dispose();
4444

4545
// Wait for actor to sleep
46-
await new Promise(res => setTimeout(res, 1000));
46+
await new Promise((res) => setTimeout(res, 1000));
4747

4848
// Reconnect after sleep
4949
const counter3 = client.counter.getOrCreate(key).connect();

packages/rivetkit/src/manager/router.ts

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ function addServerlessRoutes(
168168
if (!parseResult.success) {
169169
throw new InvalidRequest(
170170
parseResult.error.issues[0]?.message ??
171-
"invalid serverless start headers",
171+
"invalid serverless start headers",
172172
);
173173
}
174174
const { endpoint, token, totalSlots, runnerName, namespace } =
@@ -274,9 +274,9 @@ function addManagerRoutes(
274274

275275
const actorIdsParsed = actor_ids
276276
? actor_ids
277-
.split(",")
278-
.map((id) => id.trim())
279-
.filter((id) => id.length > 0)
277+
.split(",")
278+
.map((id) => id.trim())
279+
.filter((id) => id.length > 0)
280280
: undefined;
281281

282282
const actors: ActorOutput[] = [];
@@ -321,7 +321,9 @@ function addManagerRoutes(
321321
}
322322

323323
return c.json<ActorsListResponse>({
324-
actors: actors.map(actor => createApiActor(actor, runConfig.runnerName)),
324+
actors: actors.map((actor) =>
325+
createApiActor(actor, runConfig.runnerName),
326+
),
325327
});
326328
});
327329
}
@@ -655,7 +657,10 @@ function addManagerRoutes(
655657
);
656658
}
657659

658-
function createApiActor(actor: ActorOutput, runnerName: string = "default"): ApiActor {
660+
function createApiActor(
661+
actor: ActorOutput,
662+
runnerName: string = "default",
663+
): ApiActor {
659664
return {
660665
actor_id: actor.actorId,
661666
name: actor.name,

packages/rivetkit/src/registry/mod.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,9 @@ async function configureServerlessRunner(config: RunnerConfig): Promise<void> {
252252
);
253253
}
254254

255-
let dcsRes = await dcsResponse.json() as { datacenters: { name: string }[] };
255+
const dcsRes = (await dcsResponse.json()) as {
256+
datacenters: { name: string }[];
257+
};
256258

257259
// Build the request body
258260
const serverlessConfig = {
@@ -269,7 +271,9 @@ async function configureServerlessRunner(config: RunnerConfig): Promise<void> {
269271
customConfig.slotsPerRunner ?? config.totalSlots ?? 1000,
270272
},
271273
};
272-
const requestBody = Object.fromEntries(dcsRes.datacenters.map(dc => [dc.name, serverlessConfig]));
274+
const requestBody = Object.fromEntries(
275+
dcsRes.datacenters.map((dc) => [dc.name, serverlessConfig]),
276+
);
273277

274278
// Make the request to configure the serverless runner
275279
const configUrl = `${config.endpoint}/runner-configs/${config.runnerName}?namespace=${config.namespace}`;

0 commit comments

Comments
 (0)