github-actions[bot] commented on code in PR #41800:
URL: https://github.com/apache/beam/pull/41800#discussion_r4744656666


##########
runners/google-cloud-dataflow-java/worker/src/main/java/org/apache/beam/runners/dataflow/worker/windmill/state/WindmillMap.java:
##########
@@ -133,12 +133,6 @@ protected Windmill.WorkItemCommitRequest 
persistDirectly(WindmillStateCache.ForK
       ByteString keyBytes = keyStream.toByteString();

Review Comment:
   **🟢 Nit**: Lines 130-133 duplicate the helper method 
`protoKeyFromUserKey(key)` (used above at line 114 in the `localAdditions` 
loop). Consider calling `ByteString keyBytes = protoKeyFromUserKey(key);` here 
as well to avoid duplicating the key encoding logic.



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