Skip to content

Commit

Permalink
client: remove DisableClientID option
Browse files Browse the repository at this point in the history
This is useless and really only exists to make it harder to debug
clients within kafka, so the option may as well not exist.
  • Loading branch information
twmb committed Jun 7, 2021
1 parent 68b1a04 commit be6adf5
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions pkg/kgo/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -328,12 +328,6 @@ func ClientID(id string) Opt {
return clientOpt{func(cfg *cfg) { cfg.id = &id }}
}

// DisableClientID sets the client ID to null for all requests sent to Kafka
// brokers, overriding the default "kgo".
func DisableClientID() Opt {
return clientOpt{func(cfg *cfg) { cfg.id = nil }}
}

// SoftwareNameAndVersion sets the client software name and version that will
// be sent to Kafka as part of the ApiVersions request as of Kafka 2.4.0,
// overriding the default "kgo" and internal version number.
Expand Down

0 comments on commit be6adf5

Please sign in to comment.