Skip to content

Commit 322c86a

Browse files
committed
address pr comments
Signed-off-by: Atanas Atanasov <[email protected]>
1 parent c0fa3ca commit 322c86a

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

server/src/main/java/com/hedera/block/server/ack/AckHandlerImpl.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -164,11 +164,9 @@ private void attemptAcks() {
164164
// again. What would be the best way to hande inability to move the block with
165165
// the limitations we current have?
166166
// @todo(774) we should use a response code for failed persistence here
167-
LOGGER.log(
168-
ERROR,
169-
"Failed to move Block with number [%d] from unverified to live storage"
170-
.formatted(nextBlock),
171-
e);
167+
final String message = "Failed to move Block with number [%d] from unverified to live storage"
168+
.formatted(nextBlock);
169+
LOGGER.log(ERROR, message, e);
172170
blockVerificationFailed(nextBlock);
173171
return;
174172
}

server/src/main/java/com/hedera/block/server/persistence/storage/read/BlockAsLocalFileReader.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,6 @@ public Optional<BlockUnparsed> read(final long blockNumber) throws IOException,
7171
final ArchiveBlockPath archiveBlockPath = optArchivedBlock.get();
7272
final Path zipFilePath = archiveBlockPath.dirPath().resolve(archiveBlockPath.zipFileName());
7373
final BlockUnparsed value;
74-
// @todo(736) (depends on 598!) update reader to be able to read
75-
// appended blocks
7674
// @todo(741) update reader to use zipfs to read blocks
7775
try (final ZipFile zipFile = new ZipFile(zipFilePath.toFile())) {
7876
final ZipEntry entry = zipFile.getEntry(archiveBlockPath.zipEntryName());

server/src/main/java/com/hedera/block/server/persistence/storage/write/AsyncBlockAsLocalFileWriter.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@ private BlockPersistenceResult doPersistBlock() {
9090
return new BlockPersistenceResult(blockNumber, BlockPersistenceStatus.DUPLICATE_BLOCK);
9191
} else {
9292
boolean blockComplete = false;
93-
// @todo(598) write (append to file) items as they come in as an improvement
9493
final List<BlockItemUnparsed> localBlockItems = new LinkedList<>();
9594
while (!blockComplete) { // loop until received all items (until block proof arrives)
9695
try {

0 commit comments

Comments
 (0)