Skip to content

Commit

Permalink
doc: document Close on Transport (#188)
Browse files Browse the repository at this point in the history
fixes #999
  • Loading branch information
Stebalien authored Mar 29, 2021
1 parent c617c51 commit 6b076c8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/transport/transport.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ type CapableConn interface {
// CapableConn, which means that they have been upgraded to support
// stream multiplexing and connection security (encryption and authentication).
//
// If a transport implements `io.Closer` (optional), libp2p will call `Close` on
// shutdown. NOTE: `Dial` and `Listen` may be called after or concurrently with
// `Close`.
//
// For a conceptual overview, see https://docs.libp2p.io/concepts/transport/
type Transport interface {
// Dial dials a remote peer. It should try to reuse local listener
Expand Down

0 comments on commit 6b076c8

Please sign in to comment.