Rename bits -> bytes, as it normally indicates a byte array

This commit is contained in:
Andrius Dagys
2016-11-21 12:58:23 +00:00
parent 9256056ebc
commit 635ee8df79
34 changed files with 84 additions and 86 deletions

View File

@ -195,7 +195,7 @@ class CordaRPCClientImpl(private val session: ClientSession,
} catch (e: KryoException) {
throw RPCException("Could not serialize RPC arguments", e)
}
msg.writeBodyBufferBytes(serializedArgs.bits)
msg.writeBodyBufferBytes(serializedArgs.bytes)
producer!!.send(ArtemisMessagingComponent.RPC_REQUESTS_QUEUE, msg)
return kryo
}

View File

@ -73,9 +73,9 @@ class ClientRPCInfrastructureTests {
override val users: List<User> get() = throw UnsupportedOperationException()
}
val dispatcher = object : RPCDispatcher(TestOpsImpl(), userService) {
override fun send(bits: SerializedBytes<*>, toAddress: String) {
override fun send(data: SerializedBytes<*>, toAddress: String) {
val msg = serverSession.createMessage(false).apply {
writeBodyBufferBytes(bits.bits)
writeBodyBufferBytes(data.bytes)
// Use the magic deduplication property built into Artemis as our message identity too
putStringProperty(HDR_DUPLICATE_DETECTION_ID, SimpleString(UUID.randomUUID().toString()))
}