feat: remove 10ms delay in sendSsoCmdReqByContend

This commit is contained in:
pk5ls20 2024-10-19 02:12:22 +08:00
parent 5c21a1727c
commit f3033ce732
No known key found for this signature in database
GPG Key ID: 6370ED7A169F493A

View File

@ -172,7 +172,7 @@ export class PacketClient {
const md5 = crypto.createHash('md5').update(data).digest('hex'); const md5 = crypto.createHash('md5').update(data).digest('hex');
const trace_id = (this.randText(4) + md5 + data).slice(0, data.length / 2); const trace_id = (this.randText(4) + md5 + data).slice(0, data.length / 2);
this.sendCommand(cmd, data, trace_id, rsp, 20000, async () => { this.sendCommand(cmd, data, trace_id, rsp, 20000, async () => {
await sleep(10); // await sleep(10);
await this.napCatCore.context.session.getMsgService().sendSsoCmdReqByContend(cmd, trace_id); await this.napCatCore.context.session.getMsgService().sendSsoCmdReqByContend(cmd, trace_id);
}).then((res) => resolve(res)).catch((e: Error) => reject(e)); }).then((res) => resolve(res)).catch((e: Error) => reject(e));
}); });