From be6adf5b3698daa16493458b219ec76cc383b2f5 Mon Sep 17 00:00:00 2001 From: Travis Bischel Date: Sun, 6 Jun 2021 18:17:04 -0600 Subject: [PATCH] client: remove DisableClientID option This is useless and really only exists to make it harder to debug clients within kafka, so the option may as well not exist. --- pkg/kgo/config.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/pkg/kgo/config.go b/pkg/kgo/config.go index aa69de2d..00cb22bf 100644 --- a/pkg/kgo/config.go +++ b/pkg/kgo/config.go @@ -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.