Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 1 addition & 13 deletions eventmesh-sdks/eventmesh-sdk-rust/src/grpc/grpc_consumer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,17 +146,6 @@ impl EventMeshGrpcConsumer {
let handled_msg = listener_inner.handle(eventmesh_message.unwrap());
if let Ok(msg_option) = handled_msg {
if let Some(_msg) = msg_option {
let properties = HashMap::<String, String>::new();
let reply = SubscriptionReply::new(
EventMeshCloudEventUtils::get_subject(&received),
EventMeshCloudEventUtils::get_subject(&received),
EventMeshCloudEventUtils::get_data_content(&received),
EventMeshCloudEventUtils::get_seq_num(&received),
EventMeshCloudEventUtils::get_unique_id(&received),
EventMeshCloudEventUtils::get_ttl(&received),
None,
properties,
);
received.attributes.insert(
ProtocolKey::SUB_MESSAGE_TYPE.to_string(),
PbCloudEventAttributeValue {
Expand All @@ -165,8 +154,7 @@ impl EventMeshGrpcConsumer {
)),
},
);
received.data =
Some(PbData::TextData(serde_json::to_string(&reply).unwrap()));
received.data = None;
let _ = keeper.sender.send(received).await;
}
} else {
Expand Down