mirror of
https://github.com/corda/corda.git
synced 2025-03-24 21:16:12 +00:00
NodeSchedulerService no longer takes a default protocol logic ref factory (because otherwise no protocols are whitelisted) and instead now uses the one constructed in the node.
This commit is contained in:
parent
546f3e2bbf
commit
f92f7d8d56
@ -209,7 +209,7 @@ abstract class AbstractNode(open val configuration: NodeConfiguration, val netwo
|
|||||||
// the identity key. But the infrastructure to make that easy isn't here yet.
|
// the identity key. But the infrastructure to make that easy isn't here yet.
|
||||||
keyManagement = makeKeyManagementService()
|
keyManagement = makeKeyManagementService()
|
||||||
api = APIServerImpl(this@AbstractNode)
|
api = APIServerImpl(this@AbstractNode)
|
||||||
scheduler = NodeSchedulerService(database, services)
|
scheduler = NodeSchedulerService(database, services, protocolLogicFactory)
|
||||||
|
|
||||||
protocolLogicFactory = initialiseProtocolLogicFactory()
|
protocolLogicFactory = initialiseProtocolLogicFactory()
|
||||||
|
|
||||||
|
@ -45,7 +45,7 @@ import javax.annotation.concurrent.ThreadSafe
|
|||||||
@ThreadSafe
|
@ThreadSafe
|
||||||
class NodeSchedulerService(private val database: Database,
|
class NodeSchedulerService(private val database: Database,
|
||||||
private val services: ServiceHubInternal,
|
private val services: ServiceHubInternal,
|
||||||
private val protocolLogicRefFactory: ProtocolLogicRefFactory = ProtocolLogicRefFactory(),
|
private val protocolLogicRefFactory: ProtocolLogicRefFactory,
|
||||||
private val schedulerTimerExecutor: Executor = Executors.newSingleThreadExecutor())
|
private val schedulerTimerExecutor: Executor = Executors.newSingleThreadExecutor())
|
||||||
: SchedulerService, SingletonSerializeAsToken() {
|
: SchedulerService, SingletonSerializeAsToken() {
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user