Skip to content
This repository has been archived by the owner on Jun 19, 2023. It is now read-only.

Commit

Permalink
Fix aegir lints
Browse files Browse the repository at this point in the history
  • Loading branch information
ddimaria authored Feb 24, 2023
1 parent 56cc35b commit 28c9183
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/muxer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,11 @@ export class DataChannelMuxer implements StreamMuxer {
}
}
}

newStream (): Stream {
// The spec says the label SHOULD be an empty string: https://github.com/libp2p/specs/blob/master/webrtc/README.md#rtcdatachannel-label
const channel = this.peerConnection.createDataChannel('')
const closeCb = (stream: WebRTCStream) => {
const closeCb = (stream: WebRTCStream): void => {
this.metrics?.increment({ stream_end: true })
this.init?.onStreamEnd?.(stream)
}
Expand Down

0 comments on commit 28c9183

Please sign in to comment.