Skip to content

Commit 13bf5db

Browse files
committed
save
1 parent 82019b3 commit 13bf5db

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

agents/src/worker.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ export class WorkerOptions {
156156
initializeProcessTimeout: number;
157157
permissions: WorkerPermissions;
158158
agentName: string;
159-
workerType: ServerType;
159+
serverType: ServerType;
160160
maxRetry: number;
161161
wsURL: string;
162162
apiKey?: string;
@@ -180,7 +180,7 @@ export class WorkerOptions {
180180
initializeProcessTimeout = 10 * 1000,
181181
permissions = new WorkerPermissions(),
182182
agentName = '',
183-
workerType = ServerType.JT_ROOM,
183+
serverType = ServerType.JT_ROOM,
184184
maxRetry = MAX_RECONNECT_ATTEMPTS,
185185
wsURL = 'ws://localhost:7880',
186186
apiKey = undefined,
@@ -208,7 +208,7 @@ export class WorkerOptions {
208208
initializeProcessTimeout?: number;
209209
permissions?: WorkerPermissions;
210210
agentName?: string;
211-
workerType?: ServerType;
211+
serverType?: ServerType;
212212
maxRetry?: number;
213213
wsURL?: string;
214214
apiKey?: string;
@@ -233,7 +233,7 @@ export class WorkerOptions {
233233
this.initializeProcessTimeout = initializeProcessTimeout;
234234
this.permissions = permissions;
235235
this.agentName = agentName;
236-
this.workerType = workerType;
236+
this.serverType = serverType;
237237
this.maxRetry = maxRetry;
238238
this.wsURL = wsURL;
239239
this.apiKey = apiKey;
@@ -345,7 +345,7 @@ export class AgentServer {
345345
this.#opts = opts;
346346
this.#httpServer = new HTTPServer(opts.host, opts.port, () => ({
347347
agent_name: opts.agentName,
348-
worker_type: ServerType[opts.workerType],
348+
worker_type: ServerType[opts.serverType],
349349
active_jobs: this.activeJobs.length,
350350
sdk_version: version,
351351
project_type: PROJECT_TYPE,
@@ -615,7 +615,7 @@ export class AgentServer {
615615
message: {
616616
case: 'register',
617617
value: {
618-
type: this.#opts.workerType,
618+
type: this.#opts.serverType,
619619
agentName: this.#opts.agentName,
620620
allowedPermissions: new ParticipantPermission({
621621
canPublish: this.#opts.permissions.canPublish,

0 commit comments

Comments
 (0)