You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// make a new reader that consumes from topic-A, partition 0, at offset 42r:=kafka.NewReader(kafka.ReaderConfig{
Brokers: []string{"localhost:9092","localhost:9093", "localhost:9094"},
Topic: "topic-A",
Partition: 0,
MaxBytes: 10e6, // 10MB
})
r.SetOffset(kafka.LastOffset)
m, err:=r.ReadMessage(context.Background())
iferr!=nil {
log.Fatal("failed to read latest message:", err)
}
No description provided.
The text was updated successfully, but these errors were encountered: