Skip to content

Commit

Permalink
drpc: add comment on interface Transport (#20)
Browse files Browse the repository at this point in the history
Add comment that drpc.Transport is compatible with net.conn
  • Loading branch information
Erikvv authored Feb 28, 2022
1 parent f6e3694 commit 087b234
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ var (
)

// Transport is an interface describing what is required for a drpc connection.
// Any net.Conn can be used as a Transport.
type Transport interface {
io.Reader
io.Writer
Expand Down

0 comments on commit 087b234

Please sign in to comment.