From e8c96c19a4374a1fbb2bc1d099742ad8311fcb76 Mon Sep 17 00:00:00 2001 From: Lam Tang Date: Sat, 30 Jul 2022 10:03:26 +0800 Subject: [PATCH] fix: typo --- packages/connection/src/common/proxy.ts | 2 +- packages/connection/src/common/utils.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/connection/src/common/proxy.ts b/packages/connection/src/common/proxy.ts index 17de5c74455..35b412d4376 100644 --- a/packages/connection/src/common/proxy.ts +++ b/packages/connection/src/common/proxy.ts @@ -120,7 +120,7 @@ export class RPCProxy { } else { let requestResult: Promise; // generate a unique requestId to associate request and requestResult - const requestId = genrateUniqueId(); + const requestId = generateUniqueId(); if (isSingleArray) { requestResult = connection.sendRequest(prop, [...args]) as Promise; diff --git a/packages/connection/src/common/utils.ts b/packages/connection/src/common/utils.ts index 1be6aec5233..ae3be474c76 100644 --- a/packages/connection/src/common/utils.ts +++ b/packages/connection/src/common/utils.ts @@ -19,6 +19,6 @@ export function getCapturer() { return; } -export function genrateUniqueId() { +export function generateUniqueId() { return Date.now().toString(36) + Math.random().toString(36).substr(2); }