ivanzlenko commented on code in PR #4855:
URL: https://github.com/apache/ignite-3/pull/4855#discussion_r1875841433


##########
modules/metastorage/src/main/java/org/apache/ignite/internal/metastorage/server/WatchProcessor.java:
##########
@@ -183,13 +184,20 @@ public CompletableFuture<Void> notifyWatches(List<Entry> 
updatedEntries, HybridT
                     long newRevision = updatedEntries.get(0).revision();
 
                     List<Entry> filteredUpdatedEntries = 
updatedEntries.stream()
-                            .filter(entry ->
-                                    entry.key().length <= 
IDEMPOTENT_COMMAND_PREFIX_BYTES.length
-                                            ||
-                                            entry.key().length > 
IDEMPOTENT_COMMAND_PREFIX_BYTES.length
-                                                    && 
!ByteBuffer.wrap(entry.key(), 0, IDEMPOTENT_COMMAND_PREFIX_BYTES.length)
-                                                            
.equals(ByteBuffer.wrap(IDEMPOTENT_COMMAND_PREFIX_BYTES)))
-                            .collect(Collectors.toList());
+                            .filter(entry -> {

Review Comment:
   Could we move this lambda into a separate method as well? To improve 
readability even more.



-- 
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: notifications-unsubscr...@ignite.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to