Skip to content
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

lapin amqp implementation #474

Merged
merged 14 commits into from Apr 29, 2020
Merged

lapin amqp implementation #474

merged 14 commits into from Apr 29, 2020

Conversation

LnL7
Copy link
Member

@LnL7 LnL7 commented Apr 28, 2020

An attempt at switching the amqp library to improve hearbeats.

Copy link
Member

@grahamc grahamc left a 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.


pub fn from_config(cfg: &RabbitMQConfig) -> Result<CloseOnDrop<Connection>, lapin::Error> {
let opts = ConnectionProperties::default();
// TODO version
Copy link
Member

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

ofborg/src/bin/builder.rs Outdated Show resolved Hide resolved
@LnL7 LnL7 force-pushed the lapin branch 2 times, most recently from d9c98e2 to 3b35c7a Compare April 29, 2020 20:53
LnL7 added 12 commits April 29, 2020 23:00
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.
ofborg/src/easylapin.rs Outdated Show resolved Hide resolved
@LnL7 LnL7 changed the title [WIP] lapin amqp implementation lapin amqp implementation Apr 29, 2020
@LnL7 LnL7 marked this pull request as ready for review April 29, 2020 22:13
@cole-h cole-h merged commit b56a432 into NixOS:released Apr 29, 2020
@LnL7 LnL7 deleted the lapin branch April 29, 2020 22:27
@grahamc
Copy link
Member

grahamc commented Apr 29, 2020

🥳

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants