Merged in andrius-dep-cleanup (pull request #569)

This commit is contained in:
Andrius Dagys 2016-11-28 18:28:28 +00:00
commit 4c6625559f
2 changed files with 6 additions and 4 deletions

View File

@ -151,7 +151,9 @@ dependencies {
compile 'co.paralleluniverse:capsule:1.0.3'
// Java Atomix: RAFT library
compile 'io.atomix:atomix-all:1.0.0-rc4'
compile 'io.atomix.copycat:copycat-client:1.1.4'
compile 'io.atomix.copycat:copycat-server:1.1.4'
compile 'io.atomix.catalyst:catalyst-netty:1.1.1'
// Integration test helpers
integrationTestCompile 'junit:junit:4.12'

View File

@ -2,9 +2,9 @@ package net.corda.node.services.transactions
import com.google.common.net.HostAndPort
import io.atomix.catalyst.transport.Address
import io.atomix.catalyst.transport.NettyTransport
import io.atomix.catalyst.transport.SslProtocol
import io.atomix.catalyst.transport.Transport
import io.atomix.catalyst.transport.netty.NettyTransport
import io.atomix.catalyst.transport.netty.SslProtocol
import io.atomix.copycat.client.CopycatClient
import io.atomix.copycat.server.CopycatServer
import io.atomix.copycat.server.storage.Storage
@ -78,7 +78,7 @@ class RaftUniquenessProvider(storagePath: Path, myAddress: HostAndPort, clusterA
}
val client = CopycatClient.builder(address)
.withTransport(transport)
.withTransport(transport) // TODO: use local transport for client-server communications
.build()
_clientFuture = serverFuture.thenCompose { client.connect(address) }
}