mirror of
https://github.com/corda/corda.git
synced 2025-03-10 22:44:20 +00:00
Use simple for loop for api registration on node
This commit is contained in:
parent
f26178f602
commit
e8e909a5ff
@ -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)
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user