Skip to content

Commit adb721f

Browse files
committed
removed prefix from extension name
Signed-off-by: minghuaw <[email protected]>
1 parent d3cd1cd commit adb721f

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ warp = ["warp-lib", "bytes", "http", "hyper"]
2525
axum = ["bytes", "http", "hyper", "axum-lib", "http-body", "async-trait"]
2626
poem = ["bytes", "http", "poem-lib", "hyper", "async-trait"]
2727
nats = ["nats-lib"]
28-
fe2o3-amqp = ["fe2o3-amqp-lib", "fe2o3-amqp-types"]
28+
fe2o3-amqp = ["fe2o3-amqp-types"]
2929

3030
[dependencies]
3131
serde = { version = "^1.0", features = ["derive"] }
@@ -53,7 +53,6 @@ axum-lib = { version = "^0.5", optional = true , package="axum"}
5353
http-body = { version = "^0.4", optional = true }
5454
poem-lib = { version = "=1.2.34", optional = true, package = "poem" }
5555
nats-lib = { version = "0.21.0", optional = true, package = "nats" }
56-
fe2o3-amqp-lib = { version = "0.4.0", optional = true, package = "fe2o3-amqp" }
5756
fe2o3-amqp-types = { version = "0.3.4", optional = true }
5857

5958
[target."cfg(not(target_arch = \"wasm32\"))".dependencies]

src/binding/fe2o3_amqp/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ use std::collections::HashMap;
44
use std::convert::TryFrom;
55

66
use chrono::{TimeZone, Utc};
7-
use fe2o3_amqp_lib::types::messaging::{ApplicationProperties, Body, Message, Properties};
8-
use fe2o3_amqp_lib::types::primitives::{Binary, SimpleValue, Symbol, Timestamp, Value};
7+
use fe2o3_amqp_types::messaging::{ApplicationProperties, Body, Message, Properties};
8+
use fe2o3_amqp_types::primitives::{Binary, SimpleValue, Symbol, Timestamp, Value};
99

1010
use crate::event::{AttributeValue, ExtensionValue};
1111
use crate::message::{BinaryDeserializer, Error, MessageAttributeValue, StructuredDeserializer};

src/binding/fe2o3_amqp/serializer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ impl BinarySerializer<EventMessage> for EventMessage {
6060
name: &str,
6161
value: MessageAttributeValue,
6262
) -> crate::message::Result<Self> {
63-
let key = header_prefix(ATTRIBUTE_PREFIX, name);
63+
let key = name.to_string();
6464
let value = SimpleValue::from(value);
6565
self.application_properties
6666
.get_or_insert(ApplicationProperties::default())

0 commit comments

Comments
 (0)