mirror of
https://github.com/corda/corda.git
synced 2025-01-27 22:59:54 +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 var process: Process? = null
|
||||
|
||||
fun open(config: NodeConfig, onExit: (c: NodeConfig) -> Unit) {
|
||||
fun open(config: NodeConfig, onExit: (NodeConfig) -> Unit) {
|
||||
val p = explorerController.execute(
|
||||
"--host=localhost",
|
||||
"--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 <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()
|
||||
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 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)
|
||||
|
||||
companion object Data {
|
||||
|
Loading…
x
Reference in New Issue
Block a user