mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-01 12:36:08 +00:00
fix: the fix
This commit is contained in:
parent
7998577b07
commit
e4f715515c
@ -442,7 +442,7 @@ export class WorkerClient<Ready extends boolean = boolean> extends BaseClient {
|
|||||||
return Promise.all(promises);
|
return Promise.all(promises);
|
||||||
}
|
}
|
||||||
|
|
||||||
createShard(id: number, data: Pick<ManagerSpawnShards, 'info' | 'compress'>) {
|
createShard(id: number, data: Pick<ManagerSpawnShards, 'info' | 'compress' | 'properties'>) {
|
||||||
const onPacket = this.onPacket.bind(this);
|
const onPacket = this.onPacket.bind(this);
|
||||||
const handlePayload = this.options?.handlePayload?.bind(this);
|
const handlePayload = this.options?.handlePayload?.bind(this);
|
||||||
const self = this;
|
const self = this;
|
||||||
@ -454,6 +454,7 @@ export class WorkerClient<Ready extends boolean = boolean> extends BaseClient {
|
|||||||
debugger: this.debugger,
|
debugger: this.debugger,
|
||||||
properties: {
|
properties: {
|
||||||
...properties,
|
...properties,
|
||||||
|
...data.properties,
|
||||||
...this.options.gateway?.properties,
|
...this.options.gateway?.properties,
|
||||||
},
|
},
|
||||||
async handlePayload(shardId, payload) {
|
async handlePayload(shardId, payload) {
|
||||||
|
@ -324,8 +324,8 @@ export class WorkerManager extends Map<
|
|||||||
shards: this._info!.shards,
|
shards: this._info!.shards,
|
||||||
},
|
},
|
||||||
properties: {
|
properties: {
|
||||||
...this.options.properties,
|
|
||||||
...properties,
|
...properties,
|
||||||
|
...this.options.properties,
|
||||||
},
|
},
|
||||||
} satisfies ManagerSpawnShardsResharding);
|
} satisfies ManagerSpawnShardsResharding);
|
||||||
}
|
}
|
||||||
@ -340,8 +340,8 @@ export class WorkerManager extends Map<
|
|||||||
shards: this.totalShards,
|
shards: this.totalShards,
|
||||||
},
|
},
|
||||||
properties: {
|
properties: {
|
||||||
...this.options.properties,
|
|
||||||
...properties,
|
...properties,
|
||||||
|
...this.options.properties,
|
||||||
},
|
},
|
||||||
} satisfies ManagerSpawnShards);
|
} satisfies ManagerSpawnShards);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user