From 854046d5b856f47d0b9b67739264a3b2a9278153 Mon Sep 17 00:00:00 2001 From: Stefan Zerkalica Date: Thu, 7 Nov 2024 14:43:03 +0300 Subject: [PATCH] $mol_rpc_client fix call bug --- rpc/client/client.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpc/client/client.ts b/rpc/client/client.ts index 3d63b85290..af03bdb02f 100644 --- a/rpc/client/client.ts +++ b/rpc/client/client.ts @@ -8,7 +8,7 @@ namespace $ { call_async(id: string) { return new Promise( ( done , fail )=> { const timer = setTimeout( - () => fail(new Error('RPC call timeout', { cause: id })), + () => handle({ data: { id, error: 'RPC call timeout' } }), this.timeout() )