Skip to content

Commit

Permalink
fix: eliminate unnecessary Promise wrapper (#115)
Browse files Browse the repository at this point in the history
  • Loading branch information
rentallect authored Sep 13, 2023
1 parent 43a4c6b commit 4c39fd4
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/channel/channel.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -370,9 +369,6 @@ class ZitiChannel {

await self._recvConnectResponse(msg.data, conn);

resolve();

});
}

/**
Expand Down

0 comments on commit 4c39fd4

Please sign in to comment.