mirror of
https://github.com/corda/corda.git
synced 2024-12-20 05:28:21 +00:00
node, integtest: Code style
This commit is contained in:
parent
ffa9ad1bc9
commit
429d8aab74
@ -71,7 +71,7 @@ class Node(dir: Path, val p2pAddr: HostAndPort, configuration: NodeConfiguration
|
||||
// when our process shuts down, but we try in stop() anyway just to be nice.
|
||||
private var nodeFileLock: FileLock? = null
|
||||
|
||||
// Todo: Move to node config file
|
||||
// TODO: Move to node config file
|
||||
private var webServerPort: Int = p2pAddr.port + 1
|
||||
|
||||
override fun makeMessagingService(): MessagingService = ArtemisMessagingService(dir, p2pAddr, serverThread)
|
||||
|
@ -36,8 +36,7 @@ class DataUploadServlet : HttpServlet() {
|
||||
val iterator = upload.getItemIterator(req)
|
||||
val messages = ArrayList<String>()
|
||||
|
||||
if(!iterator.hasNext())
|
||||
{
|
||||
if (!iterator.hasNext()) {
|
||||
resp.sendError(HttpServletResponse.SC_BAD_REQUEST, "Got an upload request with no files")
|
||||
return
|
||||
}
|
||||
|
@ -31,6 +31,7 @@ class IRSDemoTest {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private fun setupNode(dir: Path, nodeType: String) {
|
||||
println("Running setup for $nodeType")
|
||||
val args = listOf("--role", "Setup" + nodeType, "--dir", dir.toString())
|
||||
|
Loading…
Reference in New Issue
Block a user