mirror of
https://github.com/digital-asset/daml.git
synced 2024-09-20 09:17:43 +03:00
kvutils: Don't measure submission interpretation twice. (#5496)
This is already measured in the `run` method above. CHANGELOG_BEGIN CHANGELOG_END
This commit is contained in:
parent
5f412a497a
commit
87d38d8ca6
@ -199,8 +199,6 @@ private[kvutils] class ProcessTransactionSubmission(
|
|||||||
value.getContractState.getContractKey -> Conversions.stateKeyToContractId(key)
|
value.getContractState.getContractKey -> Conversions.stateKeyToContractId(key)
|
||||||
}
|
}
|
||||||
|
|
||||||
val ctx = Metrics.interpretTimer.time()
|
|
||||||
try {
|
|
||||||
engine
|
engine
|
||||||
.validate(
|
.validate(
|
||||||
transactionEntry.abs,
|
transactionEntry.abs,
|
||||||
@ -219,9 +217,6 @@ private[kvutils] class ProcessTransactionSubmission(
|
|||||||
recordTime,
|
recordTime,
|
||||||
buildRejectionLogEntry(transactionEntry, RejectionReason.Disputed(err.msg))),
|
buildRejectionLogEntry(transactionEntry, RejectionReason.Disputed(err.msg))),
|
||||||
_ => pass)
|
_ => pass)
|
||||||
} finally {
|
|
||||||
val _ = ctx.stop()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Validate the submission's conformance to the DAML model */
|
/** Validate the submission's conformance to the DAML model */
|
||||||
|
Loading…
Reference in New Issue
Block a user