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

[ISSUE #4267] Optimized [GrpcEventMeshCloudEventProtocolResolver] #4279

Merged
merged 7 commits into from
Jul 25, 2023
Prev Previous commit
Next Next commit
[ISSUE #4269] Used switch to replace the if-else. [MeshMessageProtoco…
…lAdaptor]
  • Loading branch information
devCod3r committed Jul 23, 2023
commit 42cc3fec44bc7c2cbda17fe2c05158ed11a8affb
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,8 @@ public Map<String, Object> toMap() {
if (cloudEvent.getData() == null) {
return map;
}
map.put(MeshMessageProtocolConstant.PROTOCOL_KEY_CONTENT, new String(cloudEvent.getData().toBytes(),
Constants.DEFAULT_CHARSET));
map.put(MeshMessageProtocolConstant.PROTOCOL_KEY_CONTENT,
new String(cloudEvent.getData().toBytes(), Constants.DEFAULT_CHARSET));
return map;
}
};
Expand Down