Skip to content

Commit

Permalink
Fix actor name
Browse files Browse the repository at this point in the history
Signed-off-by: Marcos Candeia <[email protected]>
  • Loading branch information
mcandeia committed Oct 2, 2024
1 parent ea387f2 commit 09a63fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/actors/runtime.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { type ServerSentEventMessage, ServerSentEventStream } from "@std/http";
import { isUpgrade, makeWebSocket } from "./util/channels/channel.ts";
import { ACTOR_ID_HEADER_NAME, ACTOR_ID_QS_NAME } from "./proxy.ts";
import { ActorState } from "./state.ts";
import { DenoKvActorStorage } from "./storage/denoKv.ts";
import { EVENT_STREAM_RESPONSE_HEADER } from "./stream.ts";
import { isUpgrade, makeWebSocket } from "./util/channels/channel.ts";

/**
* Represents an actor.
Expand Down Expand Up @@ -136,7 +136,7 @@ export class ActorRuntime {
const actorName = groups[ACTOR_NAME_PATH_PARAM];
const actorInvoker = actorName ? this.actors.get(actorName) : undefined;
if (!actorInvoker) {
return new Response(`actor ${ACTOR_NAME_PATH_PARAM} not found`, {
return new Response(`actor ${actorName} not found`, {
status: 404,
});
}
Expand Down

0 comments on commit 09a63fc

Please sign in to comment.