network-map-visualiser: Fix compile error

This commit is contained in:
Andras Slemmer 2016-08-02 13:32:25 +01:00 committed by Ross Nicoll
parent 49beda43f9
commit 91b07a71df
2 changed files with 2 additions and 10 deletions

View File

@ -10,12 +10,10 @@ buildscript {
}
}
plugins {
id "us.kirchmeier.capsule" version "1.0.2"
}
apply plugin: 'java'
apply plugin: 'kotlin'
apply plugin: 'application'
apply plugin: 'us.kirchmeier.capsule'
group 'com.r3cev.prototyping'
version '1.0-SNAPSHOT'

View File

@ -10,7 +10,6 @@ package com.r3cev.corda.netmap
import com.r3corda.core.messaging.SingleMessageRecipient
import com.r3corda.core.then
import com.r3corda.core.utilities.BriefLogFormatter
import com.r3corda.core.utilities.ProgressTracker
import com.r3corda.node.internal.testing.IRSSimulation
import com.r3corda.node.internal.testing.MockNetwork
@ -82,10 +81,6 @@ class NetworkMapVisualiser : Application() {
val timer = Timer()
val uiThread: Scheduler = Schedulers.from { Platform.runLater(it) }
init {
BriefLogFormatter.initVerbose(InMemoryMessagingNetwork.MESSAGES_LOG_NAME)
}
override fun start(stage: Stage) {
viewModel.view = view
viewModel.presentationMode = "--presentation-mode" in parameters.raw
@ -359,13 +354,12 @@ class NetworkMapVisualiser : Application() {
// Loopback messages are boring.
if (transfer.sender.myAddress == transfer.recipients) return false
// Network map push acknowledgements are boring.
if (NetworkMapService.PUSH_ACK_PROTOCOL_TOPIC in transfer.message.topic) return false
if (NetworkMapService.PUSH_ACK_PROTOCOL_TOPIC in transfer.message.topicSession.topic) return false
return true
}
}
fun main(args: Array<String>) {
BriefLogFormatter.init()
Application.launch(NetworkMapVisualiser::class.java, *args)
}