Skip to content

Commit

Permalink
remove unused map from command store getRestoreCommands (#2296)
Browse files Browse the repository at this point in the history
  • Loading branch information
dguy authored Dec 20, 2018
1 parent 27fa002 commit 82f83ae
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,6 @@ public List<QueuedCommand> getRestoreCommands() {

log.debug("Reading prior command records");

final Map<CommandId, ConsumerRecord<CommandId, Command>> commands = Maps.newLinkedHashMap();
ConsumerRecords<CommandId, Command> records =
commandConsumer.poll(POLLING_TIMEOUT_FOR_COMMAND_TOPIC);
while (!records.isEmpty()) {
Expand All @@ -209,7 +208,7 @@ public List<QueuedCommand> getRestoreCommands() {
}
records = commandConsumer.poll(POLLING_TIMEOUT_FOR_COMMAND_TOPIC);
}
log.debug("Retrieved records:" + commands.size());
log.debug("Retrieved records:" + restoreCommands.size());
return restoreCommands;
}

Expand Down

0 comments on commit 82f83ae

Please sign in to comment.