From cba25c89f71ffc7d1a469c667eea00d3be8a1b7e Mon Sep 17 00:00:00 2001 From: Vasco Santos Date: Thu, 10 Dec 2020 12:42:01 +0100 Subject: [PATCH] chore: remove ts ignore from add stream --- src/upgrader.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/upgrader.js b/src/upgrader.js index fab99ae037..e087ddee6e 100644 --- a/src/upgrader.js +++ b/src/upgrader.js @@ -231,7 +231,6 @@ class Upgrader { const { stream, protocol } = await mss.handle(Array.from(this.protocols.keys())) log('%s: incoming stream opened on %s', direction, protocol) if (this.metrics) this.metrics.trackStream({ stream, remotePeer, protocol }) - // @ts-ignore - metadata seems to be required connection.addStream(muxedStream, { protocol }) this._onStream({ connection, stream: { ...muxedStream, ...stream }, protocol }) } catch (err) {