mirror of
https://github.com/corda/corda.git
synced 2024-12-19 21:17:58 +00:00
Declare this internal message string as "const". (#1676)
This commit is contained in:
parent
668bf981d2
commit
46cd71ca6e
@ -28,7 +28,7 @@ fun <V, W> firstOf(vararg futures: CordaFuture<out V>, handler: (CordaFuture<out
|
|||||||
|
|
||||||
private val defaultLog = LoggerFactory.getLogger("net.corda.core.concurrent")
|
private val defaultLog = LoggerFactory.getLogger("net.corda.core.concurrent")
|
||||||
@VisibleForTesting
|
@VisibleForTesting
|
||||||
internal val shortCircuitedTaskFailedMessage = "Short-circuited task failed:"
|
internal const val shortCircuitedTaskFailedMessage = "Short-circuited task failed:"
|
||||||
|
|
||||||
internal fun <V, W> firstOf(futures: Array<out CordaFuture<out V>>, log: Logger, handler: (CordaFuture<out V>) -> W): CordaFuture<W> {
|
internal fun <V, W> firstOf(futures: Array<out CordaFuture<out V>>, log: Logger, handler: (CordaFuture<out V>) -> W): CordaFuture<W> {
|
||||||
val resultFuture = openFuture<W>()
|
val resultFuture = openFuture<W>()
|
||||||
|
Loading…
Reference in New Issue
Block a user