Skip to content

Commit

Permalink
Fix bug with driver instantiation.
Browse files Browse the repository at this point in the history
  • Loading branch information
acabezas committed Jul 5, 2019
1 parent 70caff6 commit 94c07a6
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public BeamDao getBeamDao() {
public BeamDataDao getBeamDataDao() {
return Optional.ofNullable(beamDataDao)
.orElseGet(() -> {
beamDataDao = new CassandraBeamDataDao(getSession(properties), partitionHelper, beamDataManifestDao);
beamDataDao = new CassandraBeamDataDao(getSession(properties), getPartitionHelper(), getBeamDataManifestDao());
return beamDataDao;
});
}
Expand All @@ -124,7 +124,7 @@ public BeamDataDao getBeamDataDao() {
public BeamDataManifestDao getBeamDataManifestDao() {
return Optional.ofNullable(beamDataManifestDao)
.orElseGet(() -> {
beamDataManifestDao = new CassandraBeamDataManifestDao(getSession(properties), partitionHelper);
beamDataManifestDao = new CassandraBeamDataManifestDao(getSession(properties), getPartitionHelper());
return beamDataManifestDao;
});
}
Expand All @@ -133,7 +133,7 @@ public BeamDataManifestDao getBeamDataManifestDao() {
public BeamProcessedDao getBeamProcessedDao() {
return Optional.ofNullable(beamProcessedDao)
.orElseGet(() -> {
beamProcessedDao = new CassandraBeamProcessedDao(getMultiRegionSession(properties), partitionHelper);
beamProcessedDao = new CassandraBeamProcessedDao(getMultiRegionSession(properties), getPartitionHelper());
return beamProcessedDao;
});
}
Expand Down

0 comments on commit 94c07a6

Please sign in to comment.