Fixing factory in leasemanagementconfig.

This commit is contained in:
Sahil Palvia 2018-03-22 14:35:17 -07:00 committed by Justin Pfifer
parent dbbc306fef
commit dffe9194f2

View file

@ -183,11 +183,11 @@ public class LeaseManagementConfig {
public LeaseManagementFactory leaseManagementFactory() {
if (leaseManagementFactory == null) {
new DynamoDBLeaseManagementFactory(workerIdentifier(), failoverTimeMillis(), EPSILON_MS,
maxLeasesForWorker(), maxLeasesToStealAtOneTime(), maxLeaseRenewalThreads(), kinesisProxy(),
initialPositionInStream(), cleanupLeasesUponShardCompletion(), ignoreUnexpectedChildShards(),
shardSyncIntervalMillis(), metricsFactory(), executorService(), tableName(), amazonDynamoDB(),
consistentReads());
leaseManagementFactory = new DynamoDBLeaseManagementFactory(workerIdentifier(), failoverTimeMillis(),
EPSILON_MS, maxLeasesForWorker(), maxLeasesToStealAtOneTime(), maxLeaseRenewalThreads(),
kinesisProxy(), initialPositionInStream(), cleanupLeasesUponShardCompletion(),
ignoreUnexpectedChildShards(), shardSyncIntervalMillis(), metricsFactory(), executorService(),
tableName(), amazonDynamoDB(), consistentReads());
}
return leaseManagementFactory;
}