Skip to content

Commit

Permalink
save round logic
Browse files Browse the repository at this point in the history
  • Loading branch information
hashwarp committed Dec 26, 2024
1 parent c5b6de7 commit 28f4e16
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/shard-bridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -245,15 +245,15 @@ export class ShardBridge implements Bridge.Service {
// { context: { client } }
);

const info = await client.emit.info.mutate();
// const info = await client.emit.evolution.info.mutate();

if (!info || typeof info !== 'object') {
throw new Error('[SHARD.BRIDGE] invalid shard info' + info);
}
// if (!info || typeof info !== 'object') {
// throw new Error('[SHARD.BRIDGE] invalid shard info' + info);
// }

for (const key of Object.keys(info)) {
this.info[key] = info[key];
}
// for (const key of Object.keys(info)) {
// this.info[key] = info[key];
// }
}

async disconnect(input: any, { client }: any) {
Expand Down

0 comments on commit 28f4e16

Please sign in to comment.