igalshilman commented on a change in pull request #203:
URL: https://github.com/apache/flink-statefun/pull/203#discussion_r583656323
##########
File path:
statefun-flink/statefun-flink-core/src/main/java/org/apache/flink/statefun/flink/core/message/MessagePayloadSerializerRaw.java
##########
@@ -33,7 +34,7 @@ public Object deserialize(@Nonnull ClassLoader
targetClassLoader, @Nonnull Paylo
@Override
public Payload serialize(@Nonnull Object what) {
byte[] bytes = (byte[]) what;
- ByteString bs = ByteString.copyFrom(bytes);
+ ByteString bs = MoreByteStrings.wrap(bytes);
Review comment:
same here (we don't know anything about the source `byte[]`)
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]