Skip to content

Commit

Permalink
Format code
Browse files Browse the repository at this point in the history
Signed-off-by: jonathan <[email protected]>
  • Loading branch information
jlibx committed Sep 10, 2024
1 parent dffec8c commit 5cce8b2
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1705,7 +1705,9 @@ private void retrieveModelChunks(MLModel mlModelMeta, ActionListener<File> liste
chunkFiles.put(currentChunk, new File(chunkPath.toUri()));
retrievedChunks.getAndIncrement();
if (retrievedChunks.get() == totalChunks) {
Queue<File> orderedChunkFiles = chunkFiles.entrySet().stream()
Queue<File> orderedChunkFiles = chunkFiles
.entrySet()
.stream()
.sorted(Map.Entry.comparingByKey())
.map(Map.Entry::getValue)
.collect(Collectors.toCollection(LinkedList::new));
Expand Down

0 comments on commit 5cce8b2

Please sign in to comment.