Skip to content

Commit

Permalink
Remove redundant add to stateList
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin O'Donnell <kevin@blockchaintp.com>
  • Loading branch information
scealiontach committed Feb 19, 2020
1 parent 7e7675b commit 35eff22
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/main/java/com/blockchaintp/daml/QldbCommitter.java
Original file line number Diff line number Diff line change
Expand Up @@ -116,12 +116,8 @@ public void processSubmission(SubmissionWrapper submission) {
stateList.add(state);
state.updateBulkStore();
}

newQldbLogEntry.updateBulkStore();
for (java.util.Map.Entry<DamlStateKey, DamlStateValue> mapE : outputMap.entrySet()) {
QldbDamlState state = QldbDamlState.create(this.ledger, mapE.getKey(), mapE.getValue());
stateList.add(state);
}

session = this.ledger.connect();
txn = session.startTransaction();
newQldbLogEntry.upsert(txn);
Expand Down Expand Up @@ -172,12 +168,12 @@ public void run() {
private class SubmissionWrapper {
private final DamlLogEntryId damlLogEntryId;
private final DamlSubmission damlSubmission;

public SubmissionWrapper(final DamlLogEntryId newDamlLogEntryId, final DamlSubmission newDamlSubmission) {
this.damlLogEntryId = newDamlLogEntryId;
this.damlSubmission = newDamlSubmission;
}

public DamlLogEntryId getDamlLogEntryId() {
return this.damlLogEntryId;
}
Expand Down

0 comments on commit 35eff22

Please sign in to comment.