-
-
Notifications
You must be signed in to change notification settings - Fork 163
lapin amqp implementation #474
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
Conversation
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.
Those TODO's should definitely be done first. The only other thing I noticed is the unwrap's, but the current API design really does not tolerate error handling well and so I'm going to ignore that for now.
ofborg/src/easylapin.rs
Outdated
|
||
pub fn from_config(cfg: &RabbitMQConfig) -> Result<CloseOnDrop<Connection>, lapin::Error> { | ||
let opts = ConnectionProperties::default(); | ||
// TODO version |
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.
We'll definitely want this to-done for merge
d9c98e2
to
3b35c7a
Compare
An async amqp library, but more importantly unlike the current amqp library it implements heartbeats.
This isn't very nice, but should implement everything needed to drop in lapin as the amqp library.
This is probably the safest thing to start with since it can be tested separately from the main deployment and isn't only used for secondary checks.
Many of these are actually not used, probably better to remove them.
Mostly the same behaviour, but the result syntax is a bit nicer.
Might help a little bit with debugging if any of these unexpected cases occur.
🥳 |
An attempt at switching the amqp library to improve hearbeats.