You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2022/05/09 02:57:38 UTC
[GitHub] [dubbo] chickenlj commented on issue #10014: dubbo3.0.7使用protobuf报错
chickenlj commented on issue #10014:
URL: https://github.com/apache/dubbo/issues/10014#issuecomment-1120584508
It is indeed an issue that need to be fixed
```java
public void writeAttachments(Map<String, Object> attachments) throws IOException {
if (attachments == null) {
return;
}
Map<String, String> stringAttachments = new HashMap<>();
attachments.forEach((k, v) -> stringAttachments.put(k, (String) v));
ProtobufUtils.serialize(MapValue.Map.newBuilder().putAllAttachments(stringAttachments).build(), os);
os.flush();
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org