From 4c39fd4e2bbe018858afbc9a7973b13d96ee5240 Mon Sep 17 00:00:00 2001 From: Curt Tudor Date: Wed, 13 Sep 2023 10:50:15 -0600 Subject: [PATCH] fix: eliminate unnecessary Promise wrapper (#115) --- 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(); - - }); } /**