nicholassm / disruptor-rs

Low latency inter-thread communication library in Rust inspired by the LMAX Disruptor.
MIT License
633 stars 18 forks source link

Correct batch publishing function name in README.md #16

Closed jordanhiltunen closed 3 months ago

jordanhiltunen commented 3 months ago

Cool library!

I was trying to experiment with it locally, using the examples in the README to get started, but I couldn't get batch publishing to work.

It looks like while the README references publish_batch, the actual function for the producer is batch_publish.

https://github.com/nicholassm/disruptor-rs/blob/22e13239eddf5f6695238dbde8d6121059dfeb69/src/producer.rs#L218

nicholassm commented 3 months ago

Many thanks. I seriously need to find a nice way to run the code in the readme as part of the tests - this is not the first typo... (Although I caught the others myself. :-) )