Skip to content

Commit

Permalink
9 Encoders for MQTT
Browse files Browse the repository at this point in the history
Signed-off-by: Subhobrata Dey <[email protected]>
  • Loading branch information
sbcd90 committed Dec 9, 2020
1 parent e09fd5c commit ba09b47
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions cloudevents-sdk-paho-mqtt/src/mqtt_consumer_record.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,17 +131,6 @@ impl MessageDeserializer for ConsumerMessageDeserializer {

pub fn record_to_event(msg: &Message) -> Result<Event> {
MessageDeserializer::into_event(ConsumerMessageDeserializer::new(msg)?)
/* match version {
headers::MqttVersion::V5 => {
BinaryDeserializer::into_event(ConsumerMessageDeserializer::new(msg)?)
}
headers::MqttVersion::V3_1 => {
StructuredDeserializer::into_event(ConsumerMessageDeserializer::new(msg)?)
}
headers::MqttVersion::V3_1_1 => {
StructuredDeserializer::into_event(ConsumerMessageDeserializer::new(msg)?)
}
}*/
}

pub trait MessageExt {
Expand Down

0 comments on commit ba09b47

Please sign in to comment.