Skip to content

Commit

Permalink
Update mockcluster_failure.go (#1249)
Browse files Browse the repository at this point in the history
Use blank identifier for unused variables
  • Loading branch information
CaelRowley authored Jul 8, 2024
1 parent 6b6d527 commit 6fd9f9a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/mockcluster_failure_example/mockcluster_failure.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func main() {

fmt.Printf("Created Producer %v\n", p)

m, err := sendTestMsg(p)
m, _ := sendTestMsg(p)

if m.TopicPartition.Error != nil {
fmt.Printf("EXPECTED: Delivery failed: %v\n", m.TopicPartition.Error)
Expand All @@ -80,7 +80,7 @@ func main() {
return
}

m, err = sendTestMsg(p)
m, _ = sendTestMsg(p)

if m.TopicPartition.Error != nil {
fmt.Printf("EXPECTED: Delivery failed: %v\n", m.TopicPartition.Error)
Expand All @@ -97,7 +97,7 @@ func main() {
return
}

m, err = sendTestMsg(p)
_, err = sendTestMsg(p)
if err != nil {
fmt.Fprintf(os.Stderr, "There shouldn't be an error but got: %v", err)
return
Expand Down

0 comments on commit 6fd9f9a

Please sign in to comment.