Skip to content

Commit

Permalink
Removing exception handling, simplifying code
Browse files Browse the repository at this point in the history
Signed-off-by: Alfredo Gutierrez <[email protected]>
  • Loading branch information
AlfredoG87 committed Aug 22, 2024
1 parent 5c0d404 commit ca8b98c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 45 deletions.
12 changes: 4 additions & 8 deletions server/src/main/java/com/hedera/block/server/Server.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

package com.hedera.block.server;

import com.hedera.block.server.exception.UnhandledIOException;
import edu.umd.cs.findbugs.annotations.NonNull;
import java.io.IOException;

Expand All @@ -31,8 +30,9 @@ private Server() {}
* Main entrypoint for the block node server
*
* @param args Command line arguments. Not used at present.
* @throws IOException if there is an error starting the server
*/
public static void main(final String[] args) {
public static void main(final String[] args) throws IOException {

LOGGER.log(System.Logger.Level.INFO, "Starting BlockNode Server");

Expand All @@ -41,11 +41,7 @@ public static void main(final String[] args) {
DaggerBlockNodeAppInjectionComponent.create();
@NonNull final BlockNodeApp blockNodeApp = daggerComponent.getBlockNodeApp();

try {
blockNodeApp.startServer();
} catch (IOException e) {
LOGGER.log((System.Logger.Level.ERROR), "Failed to start server", e);
throw new UnhandledIOException(e);
}
blockNodeApp.startServer();

}
}

This file was deleted.

0 comments on commit ca8b98c

Please sign in to comment.