mirror of
https://github.com/corda/corda.git
synced 2024-12-18 20:47:57 +00:00
NOTICK - make recordDependencies suspendable (#6896)
* add suspendable annotation to recordDependencies * add suspendable annotation to recordDependencies implementation
This commit is contained in:
parent
360b3f8d0c
commit
8dd9dee9c4
@ -24,5 +24,6 @@ interface TransactionsResolver {
|
||||
@Suspendable
|
||||
fun downloadDependencies(batchMode: Boolean)
|
||||
|
||||
@Suspendable
|
||||
fun recordDependencies(usedStatesToRecord: StatesToRecord)
|
||||
}
|
@ -94,6 +94,7 @@ class DbTransactionsResolver(private val flow: ResolveTransactionsFlow) : Transa
|
||||
logger.debug { "Downloaded ${sortedDependencies?.size} dependencies from remote peer for transactions ${flow.txHashes}" }
|
||||
}
|
||||
|
||||
@Suspendable
|
||||
override fun recordDependencies(usedStatesToRecord: StatesToRecord) {
|
||||
val sortedDependencies = checkNotNull(this.sortedDependencies)
|
||||
logger.trace { "Recording ${sortedDependencies.size} dependencies for ${flow.txHashes.size} transactions" }
|
||||
|
Loading…
Reference in New Issue
Block a user