Skip to content

Commit

Permalink
lyra の削除により不要になった分岐を取り除く
Browse files Browse the repository at this point in the history
  • Loading branch information
tnamao committed Mar 7, 2024
1 parent 7b77acb commit 19bd377
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions packages/sdk/src/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1455,11 +1455,7 @@ export default class ConnectionBase {
// @ts-ignore
const senderStreams = sender.createEncodedStreams() as TransformStream
const readable = senderStreams.readable
if (this.e2ee) {
this.e2ee.setupSenderTransform(readable, senderStreams.writable)
} else {
readable.pipeTo(senderStreams.writable).catch((e) => console.warn(e))
}
this.e2ee.setupSenderTransform(readable, senderStreams.writable)
this.senderStreamInitialized.add(sender)
}

Expand Down Expand Up @@ -1487,11 +1483,7 @@ export default class ConnectionBase {
// @ts-ignore
const receiverStreams = receiver.createEncodedStreams() as TransformStream
const writable = receiverStreams.writable
if (this.e2ee) {
this.e2ee.setupReceiverTransform(receiverStreams.readable, writable)
} else {
receiverStreams.readable.pipeTo(writable).catch((e) => console.warn(e))
}
this.e2ee.setupReceiverTransform(receiverStreams.readable, writable)
}

/**
Expand Down

0 comments on commit 19bd377

Please sign in to comment.