Skip to content

Commit

Permalink
[kafkaadmin] corrected variable
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiealquiza committed Feb 11, 2022
1 parent 547c244 commit 44cbb35
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions kafkaadmin/throttles.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const (
brokerTXThrottleCfgName = "leader.replication.throttled.rate"
brokerRXThrottleCfgName = "follower.replication.throttled.rate"
topicThrottledLeadersCfgName = "leader.replication.throttled.replicas"
topicThrottledFollowersCfgName = "leader.replication.throttled.replicas"
topicThrottledFollowersCfgName = "follower.replication.throttled.replicas"
)

// ThrottleConfig holds SetThrottle configs.
Expand Down Expand Up @@ -154,7 +154,6 @@ func (c Client) RemoveThrottle(ctx context.Context, cfg RemoveThrottleConfig) er
// Merge all configs into the global configuration set.
for i, resourceConfig := range []ResourceConfigs{topicDynamicConfigs, brokerDynamicConfigs} {
for name, configs := range resourceConfig {
// StringMapToConfigEntries
c := kafka.ConfigResource{
Name: name,
Config: kafka.StringMapToConfigEntries(configs, kafka.AlterOperationSet),
Expand Down

0 comments on commit 44cbb35

Please sign in to comment.