Skip to content

Commit

Permalink
chore: put request in the try
Browse files Browse the repository at this point in the history
  • Loading branch information
ablax committed Aug 29, 2024
1 parent a915a73 commit dd26c5c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ public void next(WarpSyncMachine sync) {

@Override
public void handle(WarpSyncMachine sync) {
WarpSyncResponse resp = sync.getNetworkService().makeWarpSyncRequest(blockHash.toString());
try {
WarpSyncResponse resp = sync.getNetworkService().makeWarpSyncRequest(blockHash.toString());
if (resp == null) {
throw new MissingObjectException("No response received.");
}
Expand Down

0 comments on commit dd26c5c

Please sign in to comment.