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

"reliable" MQTT port (paho) #73

Closed
wants to merge 19 commits into from
Closed

Conversation

linuxbasic
Copy link
Contributor

  • new minor version of cerk_port_mqtt
    • support for reliability feature (IncomingCloudEventProcessed and OutgoingCloudEventProcessed)
    • only one subscribe_topic configurable
    • subscribe_qos only supports value 0 (see MQTT Port: Support for QoS 1/2 #71)
    • persistence not configurable anymore (always no persistence)
  • new patch version of cerk_runtime_threading
    • process exits if a thread panics

@linuxbasic linuxbasic changed the title "reliable" MQTT port "reliable" MQTT port (paho) Dec 12, 2020
…st-reliable-mqtt

# Conflicts:
#	cerk_port_mqtt/Cargo.toml
#	cerk_port_mqtt/README.md
#	cerk_port_mqtt/src/lib.rs
#	cerk_runtime_threading/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "cerk_port_mqtt"
version = "0.2.6"
version = "0.3.0"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this will be done in a separate release process

https://github.com/ce-rust/cerk#release-management

paho-mqtt = { version = "0.6.0", features = ["bundled", "build_bindgen"], default-features = false }
paho-mqtt = { version="0.8.0", features=["bundled", "build_bindgen"], default-features = false}
anyhow = "1.0"
async-std = "1.7.0"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
async-std = "1.7.0"
async-std = "1.7"

@@ -20,4 +20,6 @@ env_logger = "0.7.1"
cerk = { version = "0.2", path = "../cerk" }
cloudevents-sdk = "0.3.0"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
cloudevents-sdk = "0.3.0"
cloudevents-sdk = "0.3"

match serde_json::from_str::<Event>(&payload_str) {
Ok(cloud_event) => {
debug!("{} deserialized event successfully", id);
// todo add delivery attempt to routing id
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

open todo?

let routing_args = CloudEventRoutingArgs {
delivery_guarantee: match connection.subscribe_qos {
0 => DeliveryGuarantee::BestEffort,
_ => panic!("The MQTT Port Currently only supports QoS 0 (see https://github.com/ce-rust/cerk/issues/71)"),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add an error instead?

Comment on lines -234 to -236
#[cfg(test)]
mod tests {
use super::*;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why have you removed all tests?

@linuxbasic linuxbasic closed this Jan 15, 2021
@Lazzaretti Lazzaretti deleted the feat/test-reliable-mqtt branch July 9, 2022 11:12
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

2 participants