Skip to content

Commit 98bf805

Browse files
committed
optimized returned reply in subscribe method
1 parent 42c0d06 commit 98bf805

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Diff for: eventmesh-sdks/eventmesh-sdk-rust/src/grpc/grpc_consumer.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -161,12 +161,11 @@ impl EventMeshGrpcConsumer {
161161
ProtocolKey::SUB_MESSAGE_TYPE.to_string(),
162162
PbCloudEventAttributeValue {
163163
attr: Some(PbAttr::CeString(
164-
SubscriptionReply::SUB_TYPE.to_string(),
164+
ProtocolKey::SUB_REPLY_MESSAGE.to_string(),
165165
)),
166166
},
167167
);
168-
received.data =
169-
Some(PbData::TextData(serde_json::to_string(&reply).unwrap()));
168+
received.data = None;
170169
let _ = keeper.sender.send(received).await;
171170
}
172171
} else {

0 commit comments

Comments
 (0)