chia7712 commented on PR #17927:
URL: https://github.com/apache/kafka/pull/17927#issuecomment-2495850704

   @Yunyung Could you please remove DelayedItem directly? the only use case is 
` PartitionFetchState` and so we can pass `dueMs: Option[Long]` instead of 
`delay Option[DelayedItem]`. The method `isDelayed` can be replaced by 
following code.
   
   ```scala
   def isDelayed: Boolean = dueMs.map(_ - Time.SYSTEM.milliseconds).exists(_ > 
0)
   ```


-- 
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]

Reply via email to