He-Pin commented on code in PR #3097:
URL: https://github.com/apache/pekko/pull/3097#discussion_r3444367737
##########
remote/src/main/scala/org/apache/pekko/remote/transport/ThrottlerTransportAdapter.scala:
##########
@@ -627,21 +627,41 @@ private[transport] final case class
ThrottlerHandle(_wrappedHandle: AssociationH
override def write(payload: ByteString): Boolean = {
val tokens = payload.length
- @tailrec def tryConsume(currentBucket: ThrottleMode): Boolean = {
+ @tailrec def tryConsume(currentBucket: ThrottleMode):
Option[(ThrottleMode, ThrottleMode)] = {
Review Comment:
Use a dedicated class instead of tuple2
--
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]