Skip to content

Commit

Permalink
gofmt
Browse files Browse the repository at this point in the history
  • Loading branch information
fgeller committed Sep 9, 2023
1 parent 03d19e3 commit 5f40182
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions produce.go
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ func (cmd *produceCmd) deserializeLines(in chan string, out chan message, partit
if msg.Value != nil && cmd.partitioner == "hashCodeByValue" {
part = hashCodePartition(*msg.Value, partitionCount)
msg.Partition = &part
}else {
} else {
if msg.Key != nil && cmd.partitioner == "hashCode" {
part = hashCodePartition(*msg.Key, partitionCount)
}
Expand Down Expand Up @@ -469,7 +469,6 @@ func (cmd *produceCmd) produceBatch(leaders map[int32]*sarama.Broker, batch []me

offsets, err := cmd.readPartitionOffsetResults(resp)
if err != nil {

return fmt.Errorf("failed to read producer response err=%s", err)
}

Expand Down

0 comments on commit 5f40182

Please sign in to comment.