Skip to content

Commit

Permalink
Merge pull request redpanda-data#12 from weeco/enhance-new-client-doc…
Browse files Browse the repository at this point in the history
…umentation

Enhance NewClient documentation
  • Loading branch information
twmb authored Oct 6, 2020
2 parents 3bc9454 + cdf6a66 commit 394944a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/kgo/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,11 @@ type Client struct {
}

// NewClient returns a new Kafka client with the given options or an error if
// the options are invalid.
// the options are invalid. Connections to brokers are lazily created only when
// requests are written to them.
//
// NewClient also launches a goroutine which periodically updates the cached
// topic metadata.
func NewClient(opts ...Opt) (*Client, error) {
cfg := defaultCfg()
for _, opt := range opts {
Expand Down

0 comments on commit 394944a

Please sign in to comment.