Skip to content

Commit

Permalink
Update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoPolo committed Nov 14, 2024
1 parent 60c874b commit 3149f4b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lazyClient.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,7 @@ func (l *lazyClientConn[T]) Write(b []byte) (int, error) {
return l.con.Write(b)
}

// Close closes the underlying io.ReadWriteCloser
//
// This does not flush anything.
// Close closes the underlying io.ReadWriteCloser after finishing the handshake.
func (l *lazyClientConn[T]) Close() error {
// As the client, we flush the handshake on close to cover an
// interesting edge-case where the server only speaks a single protocol
Expand Down

0 comments on commit 3149f4b

Please sign in to comment.