chore: better log

This commit is contained in:
pk5ls20 committed 2024-11-05 13:52:56 +08:00
1 parent 9b448b17e6
commit 017b8b7f15
5 files changed
+11 -19

No files matched your search

-3
View File
@@ -65,9 +65,6 @@ export abstract class PacketClient {
private async sendCommand(cmd: string, data: string, trace_id: string, rsp: boolean = false, timeout: number = 20000, sendcb: (json: RecvPacketData) => void = () => {
}): Promise<RecvPacketData> {
return new Promise<RecvPacketData>((resolve, reject) => {
if (!this.isAvailable) {
throw new Error("Packet Service is not available");
}
if (rsp) {
this.registerCallback(trace_id, 'recv', async (json: RecvPacketData) => {
clearTimeout(timeoutHandle);