Skip to content

Commit

Permalink
Correct function name in README.md
Browse files Browse the repository at this point in the history
The README references a `publish_batch` function.
I couldn't get that to work; digging through the source, it looks like it intends to refer to the `batch_publish` function:

https://github.com/nicholassm/disruptor-rs/blob/22e13239eddf5f6695238dbde8d6121059dfeb69/src/producer.rs#L218
  • Loading branch information
jordanhiltunen authored Jul 17, 2024
1 parent 22e1323 commit dd0eb5f
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 @@ -50,7 +50,7 @@ fn main() {
}

// Publish a batch of events into the Disruptor.
producer.publish_batch(5, |iter| {
producer.batch_publish(5, |iter| {
for e in iter { // `iter` is guaranteed to yield 5 events.
e.price = 42.0;
}
Expand Down

0 comments on commit dd0eb5f

Please sign in to comment.