Skip to content

Commit

Permalink
better comment
Browse files Browse the repository at this point in the history
  • Loading branch information
FZambia committed Oct 23, 2024
1 parent 8a1b226 commit 4dd9cd7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,8 @@ func (c *Client) Connect(req ConnectRequest) {

// ConnectNoErrorToDisconnect is the same as Client.Connect but does not try to extract
// Disconnect code from the error returned by the connect logic, instead it just returns
// the error to the caller. This error must be handled by the caller on the Transport level.
// the error to the caller. This error must be handled by the caller on the Transport level,
// and the connection must be closed on Transport level upon receiving an error.
func (c *Client) ConnectNoErrorToDisconnect(req ConnectRequest) error {
return c.unidirectionalConnect(req.toProto(), 0, false)
}
Expand Down

0 comments on commit 4dd9cd7

Please sign in to comment.