Browse Source

remove try catch

pull/7526/head
chrislu 1 week ago
parent
commit
274750fb82
  1. 5
      other/java/client/src/main/java/seaweedfs/client/SeaweedRead.java

5
other/java/client/src/main/java/seaweedfs/client/SeaweedRead.java

@ -55,7 +55,6 @@ public class SeaweedRead {
// TODO parallel this // TODO parallel this
long readCount = 0; long readCount = 0;
long startOffset = position; long startOffset = position;
try {
for (ChunkView chunkView : chunkViews) { for (ChunkView chunkView : chunkViews) {
if (startOffset < chunkView.logicOffset) { if (startOffset < chunkView.logicOffset) {
@ -82,10 +81,6 @@ public class SeaweedRead {
startOffset += len; startOffset += len;
} }
} catch (Exception e) {
throw e;
}
// Fix: Calculate the correct limit based on the read position and requested // Fix: Calculate the correct limit based on the read position and requested
// size, // size,

Loading…
Cancel
Save