He-Pin commented on code in PR #1085:
URL: https://github.com/apache/incubator-pekko/pull/1085#discussion_r1475446900
##########
actor/src/main/scala-2.12/org/apache/pekko/util/ByteString.scala:
##########
@@ -566,6 +572,9 @@ object ByteString {
def asByteBuffers: scala.collection.immutable.Iterable[ByteBuffer] =
bytestrings.map { _.asByteBuffer }
+ override def asInputStream: InputStream =
+ new
SequenceInputStream(bytestrings.map(_.asInputStream).iterator.asJavaEnumeration)
Review Comment:
```suggestion
new
SequenceInputStream(bytestrings.iterator.map(_.asInputStream).asJavaEnumeration)
```
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]