Skip to content

Commit

Permalink
Fix import error in Writer code example in README (#1234)
Browse files Browse the repository at this point in the history
Fixes #1231
  • Loading branch information
VMois authored Nov 17, 2023
1 parent c6378c3 commit 6481322
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ for i := 0; i < retries; i++ {

// attempt to create topic prior to publishing the message
err = w.WriteMessages(ctx, messages...)
if errors.Is(err, LeaderNotAvailable) || errors.Is(err, context.DeadlineExceeded) {
if errors.Is(err, kafka.LeaderNotAvailable) || errors.Is(err, context.DeadlineExceeded) {
time.Sleep(time.Millisecond * 250)
continue
}
Expand Down

0 comments on commit 6481322

Please sign in to comment.