mirror of
https://github.com/corda/corda.git
synced 2025-06-19 15:43:52 +00:00
Use simple for loop for api registration on node
This commit is contained in:
@ -107,10 +107,8 @@ class Node(dir: Path, val p2pAddr: HostAndPort, configuration: NodeConfiguration
|
||||
resourceConfig.register(ResponseFilter())
|
||||
resourceConfig.register(api)
|
||||
|
||||
clientAPIs.forEach {
|
||||
customAPIClass ->
|
||||
val customAPI = customAPIClass.getConstructor(api.APIServer::class.java)
|
||||
.newInstance(api)
|
||||
for(customAPIClass in clientAPIs) {
|
||||
val customAPI = customAPIClass.getConstructor(api.APIServer::class.java).newInstance(api)
|
||||
resourceConfig.register(customAPI)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user