Skip to content

Commit

Permalink
refactor: add a log of the submission reference count
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 Aug 11, 2021
1 parent 2d00bfd commit 0ad4214
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,9 @@ public Future<SubmissionResult> commit(final String correlationId, final Raw.Env

return Future.apply(() -> {
try {
var rx = commitPayloadBuilder.build(envelope, metadata, correlationId).stream().map(submitter::submitPayload)
.collect(Collectors.toList());
var references = commitPayloadBuilder.build(envelope, metadata, correlationId).stream()
.map(submitter::submitPayload).collect(Collectors.toList());
LOG.trace("Received {} submission references", references.size());
return SubmissionResult.Acknowledged$.MODULE$;
} catch (final Exception e) {
LOG.warn("Interrupted while submitting transaction {}", e);
Expand Down

0 comments on commit 0ad4214

Please sign in to comment.