Skip to content

Commit

Permalink
Fix missed compression
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin O'Donnell <[email protected]>
  • Loading branch information
scealiontach committed Jun 15, 2019
1 parent 83f2c4d commit 5bfe2c5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public DamlLedgerState(final Context aState) {
this.state = aState;
}

private ByteString getMultipartState(List<String> addrList) throws InternalError, InvalidTransactionException {
private ByteString getMultipartState(final List<String> addrList) throws InternalError, InvalidTransactionException {
try {
ByteArrayOutputStream baos = new ByteArrayOutputStream();
for (String addr : addrList) {
Expand Down Expand Up @@ -181,7 +181,7 @@ private String[] addDamlLogEntries(final Collection<Entry<DamlLogEntryId, DamlLo
List<String> idList = new ArrayList<>();
for (Entry<DamlLogEntryId, DamlLogEntry> e : entries) {
List<String> addrList = Namespace.makeMultipartDamlLogAddress(e.getKey());
setMultipartState(addrList, KeyValueCommitting.packDamlLogEntry(e.getValue()));
setMultipartState(addrList, compressByteString(KeyValueCommitting.packDamlLogEntry(e.getValue())));
idList.addAll(addrList);
}
return idList.toArray(new String[] {});
Expand Down

0 comments on commit 5bfe2c5

Please sign in to comment.