-
-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix clippy warnings #23
Conversation
Oh. Really? I've been using |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will make a new release after merging other PRs
Thank you. Such nice software engineering work.
Btw, I've been using the high-level SeaStreamer API for a long time and I don't see myself having more needs. Of course Kafka might have a thousand knobs, but I don't find myself using Kafka much these days, and I love Redis Streams more or more. But I guess this can change.
And we've been using the File API in FireDBG, it's more stable than I thought. And there isn't much I'd change about it either. Rewind could be made faster, but it does not bug me.
So, all I am saying is, I'd inclined to make a 1.0 release sometime. What's your usecase? Is there anything architecturally you want to see changes before then?
Thank you, first and foremost, for such a rich ecosystem of modules that I use in my projects. Currently, I am using sea-streamer with Kafka backend with a connection to Redpanda for:
The inconvenience arises when it is necessary not only to accumulate messages, but also to add a minimum waiting time for I wrote a small helper, the implementation idea of which I borrowed a bit from futures-batch and tokio::time::timeout. It partially eliminates the inconveniences mentioned above, but I am not entirely confident in its reliability. Because committing the identifier to the consumer should only occur after successful execution, otherwise retries should occur with backoff (for example module) and no new events should be received until then. Maybe it's not really the module's area of responsibility, but I think it would be handy. Otherwise, I am completely fine with the implementation of the module in terms of usability. |
Thank you for your input. I think may be we can have a Speaking of which, I actually have implemented a similar thing somewhere in one of my projects. The difficulty, though, as you already experienced, is to handle max send interval, because it means we'd have to set up a callback to wake us up after some time. Btw, I think Kafka already has something similar https://stackoverflow.com/questions/51878751/send-bulk-of-messages-kafka-producer |
So far, it is the batch processing of messages in the consumer that is causing the problem. I currently rely on batching from librdkafka in producer, but it won't work in Redis. |
🎉 Released In 0.5.0 🎉Thank you everyone for the contribution! |
PR Info
Just fixes the clippy warrnings. I would like to point out that the declared MSVR does not correspond to the functions used, namely:
std::hint::black_box
(min MSVR1.66
)std::thread::JoinHandle::is_finished
(min MSVR1.61
)