Skip to content

Commit

Permalink
Fix drift in MessageFramer comment (#8427)
Browse files Browse the repository at this point in the history
  • Loading branch information
anuraaga committed Sep 2, 2021
1 parent b0b2500 commit 522b37b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/java/io/grpc/internal/MessageFramer.java
Expand Up @@ -267,7 +267,7 @@ private static int writeToOutputStream(InputStream message, OutputStream outputS
return ((Drainable) message).drainTo(outputStream);
} else {
// This makes an unnecessary copy of the bytes when bytebuf supports array(). However, we
// expect performance-critical code to support flushTo().
// expect performance-critical code to support drainTo().
@SuppressWarnings("BetaApi") // ByteStreams is not Beta in v27
long written = ByteStreams.copy(message, outputStream);
checkArgument(written <= Integer.MAX_VALUE, "Message size overflow: %s", written);
Expand Down

0 comments on commit 522b37b

Please sign in to comment.