Skip to content

Commit

Permalink
fix: conversion error
Browse files Browse the repository at this point in the history
  • Loading branch information
achoimet committed Nov 12, 2024
1 parent d37549e commit 1901faf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extkafka/alter_limit_connection_create_rate.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func (k *AlterLimitConnectionCreateRateAttack) Describe() action_kit_api.ActionD

func (k *AlterLimitConnectionCreateRateAttack) Prepare(_ context.Context, state *AlterLimitConnectionCreateRateState, request action_kit_api.PrepareActionRequestBody) (*action_kit_api.PrepareResult, error) {
state.BrokerID = extutil.ToInt32(request.Target.Attributes["kafka.broker.node-id"][0])
state.BrokerConfigValue = fmt.Sprintf("%f", request.Config["connection_rate"])
state.BrokerConfigValue = fmt.Sprintf("%d", int(extutil.ToInt64(request.Config["connection_rate"])))

return nil, nil
}
Expand Down

0 comments on commit 1901faf

Please sign in to comment.