Skip to content

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
majst01 committed Jun 2, 2024
1 parent b1d3126 commit 7e6158a
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,19 +81,7 @@ func init() {
hostRegex = regexp.MustCompile(`^([a-zA-Z0-9.\[\]:%-]+)$`)
}

// Dial creates a LightOS cluster client. it is a blocking call and will only
// return once the connection to [at least one of the] `targets` has been
// actually established - subject to `ctx` limitations. if `ctx` specified
// timeout or duration - dialling (and only dialling!) timeout will be set
// accordingly. `ctx` can also be used to cancel the dialling process, as per
// usual.
//
// the cluster client will make an effort to transparently reconnect to one of
// the `targets` in case of connection loss. if the process of finding a live
// and responsive target amongst `targets` and establishing the connection takes
// longer than the actual operation context timeout (as opposed to the `ctx`
// passed here) - `DeadlineExceeded` will be returned as usual, and the caller
// can retry the operation.
// Dial creates a LightOS cluster client.
func Dial(config DialConfig) (durosv2.DurosAPIClient, error) {
if config.Credentials != nil && config.ByteCredentials != nil {
return nil, status.Errorf(codes.InvalidArgument,
Expand Down

0 comments on commit 7e6158a

Please sign in to comment.