mirror of
https://github.com/corda/corda.git
synced 2025-02-10 21:01:27 +00:00
Remove superfluous lamba parameter names.
This commit is contained in:
parent
ba5f4add18
commit
455cdba5d9
@ -9,7 +9,7 @@ class Explorer(val explorerController: ExplorerController) : AutoCloseable {
|
|||||||
private val executor = Executors.newSingleThreadExecutor()
|
private val executor = Executors.newSingleThreadExecutor()
|
||||||
private var process: Process? = null
|
private var process: Process? = null
|
||||||
|
|
||||||
fun open(config: NodeConfig, onExit: (c: NodeConfig) -> Unit) {
|
fun open(config: NodeConfig, onExit: (NodeConfig) -> Unit) {
|
||||||
val p = explorerController.execute(
|
val p = explorerController.execute(
|
||||||
"--host=localhost",
|
"--host=localhost",
|
||||||
"--port=${config.artemisPort}",
|
"--port=${config.artemisPort}",
|
||||||
|
@ -72,7 +72,7 @@ private fun <T> valueFor(any: T): ConfigValue? = ConfigValueFactory.fromAnyRef(a
|
|||||||
|
|
||||||
private fun addressValueFor(port: Int) = valueFor("localhost:$port")
|
private fun addressValueFor(port: Int) = valueFor("localhost:$port")
|
||||||
|
|
||||||
private fun <T> optional(path: String, obj: T?, body: (c: Config, o: T) -> Config): Config {
|
private fun <T> optional(path: String, obj: T?, body: (Config, T) -> Config): Config {
|
||||||
val config = ConfigFactory.empty()
|
val config = ConfigFactory.empty()
|
||||||
return if (obj == null) config else body(config, obj).atPath(path)
|
return if (obj == null) config else body(config, obj).atPath(path)
|
||||||
}
|
}
|
||||||
|
@ -8,7 +8,7 @@ import net.corda.demobench.model.NodeConfig
|
|||||||
import net.corda.node.services.messaging.CordaRPCClient
|
import net.corda.node.services.messaging.CordaRPCClient
|
||||||
import org.slf4j.LoggerFactory
|
import org.slf4j.LoggerFactory
|
||||||
|
|
||||||
class NodeRPC(config: NodeConfig, invoke: (ops: CordaRPCOps) -> Unit): AutoCloseable {
|
class NodeRPC(config: NodeConfig, invoke: (CordaRPCOps) -> Unit): AutoCloseable {
|
||||||
private val log = LoggerFactory.getLogger(NodeRPC::class.java)
|
private val log = LoggerFactory.getLogger(NodeRPC::class.java)
|
||||||
|
|
||||||
companion object Data {
|
companion object Data {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user