Skip to content

Commit

Permalink
fix: Remove Stream methods from Connection
Browse files Browse the repository at this point in the history
remove (add|remove)Stream from connection interface

Related: libp2p#1855
  • Loading branch information
tabcat committed Jul 31, 2023
1 parent 1f7e18b commit 3c1c6f8
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions packages/interface/src/connection/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -258,16 +258,6 @@ export interface Connection {
*/
newStream: (protocols: string | string[], options?: NewStreamOptions) => Promise<Stream>

/**
* Add a stream to this connection
*/
addStream: (stream: Stream) => void

/**
* Remove a stream from this connection
*/
removeStream: (id: string) => void

/**
* Gracefully close the connection. All queued data will be written to the
* underlying transport.
Expand Down

0 comments on commit 3c1c6f8

Please sign in to comment.