Skip to content

Commit

Permalink
chore: remove ts ignore from add stream
Browse files Browse the repository at this point in the history
  • Loading branch information
vasco-santos committed Dec 10, 2020
1 parent e014fee commit cba25c8
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/upgrader.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit cba25c8

Please sign in to comment.