Skip to content

Commit

Permalink
fix assemble one more time
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanBratanov committed Sep 24, 2023
1 parent 3f1bf02 commit d911dd7
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,13 @@ public int getDeposits(
@Mixin final BeaconNodeDataOptions beaconNodeDataOptions,
@Mixin final Eth2NetworkOptions eth2NetworkOptions)
throws Exception {
try (final YamlEth1EventsChannel eth1EventsChannel = new YamlEth1EventsChannel(System.out);
final Database database = createDatabase(beaconNodeDataOptions, eth2NetworkOptions)) {
final YamlEth1EventsChannel eth1EventsChannel = new YamlEth1EventsChannel(System.out);
try (final Database database = createDatabase(beaconNodeDataOptions, eth2NetworkOptions)) {
final DepositStorage depositStorage =
DepositStorage.create(eth1EventsChannel, database, false);
depositStorage.replayDepositEvents().join();
} finally {
eth1EventsChannel.close();
}
return 0;
}
Expand Down

0 comments on commit d911dd7

Please sign in to comment.