chore: remove ts ignore from add stream

This commit is contained in:
Vasco Santos 2020-12-10 12:42:01 +01:00
parent e014feef71
commit cba25c89f7

View File

@ -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) {