From a3f42f0d6bc0f2bdfb0d4e2f94aad095459879c2 Mon Sep 17 00:00:00 2001 From: Curt Tudor Date: Wed, 13 Sep 2023 10:43:53 -0600 Subject: [PATCH] eliminate unnecessary Promise wrapper --- src/channel/channel.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/channel/channel.js b/src/channel/channel.js index 38a34c2..61f92bc 100644 --- a/src/channel/channel.js +++ b/src/channel/channel.js @@ -300,7 +300,6 @@ class ZitiChannel { async connect(conn) { const self = this; - return new Promise( async (resolve, reject) => { self._zitiContext.logger.debug('initiating Connect to Edge Router [%s] for conn[%d]', this._edgeRouterHost, conn.id); @@ -370,9 +369,6 @@ class ZitiChannel { await self._recvConnectResponse(msg.data, conn); - resolve(); - - }); } /**