Skip to content

Commit

Permalink
$mol_rpc_client fix call bug
Browse files Browse the repository at this point in the history
  • Loading branch information
zerkalica committed Nov 7, 2024
1 parent 7849b8a commit 854046d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rpc/client/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace $ {
call_async(id: string) {
return new Promise<unknown>( ( done , fail )=> {
const timer = setTimeout(
() => fail(new Error('RPC call timeout', { cause: id })),
() => handle({ data: { id, error: 'RPC call timeout' } }),
this.timeout()
)

Expand Down

0 comments on commit 854046d

Please sign in to comment.