mirror of
https://github.com/corda/corda.git
synced 2025-05-30 06:04:24 +00:00
Code rewiew: constant naming
This commit is contained in:
parent
170fde9d71
commit
79f080368b
@ -38,7 +38,7 @@ interface NodeConfiguration : NodeSSLConfiguration {
|
|||||||
val additionalNodeInfoPollingFrequencyMsec: Long
|
val additionalNodeInfoPollingFrequencyMsec: Long
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
val disableCheckpointCheckerFlag = "disableCheckpointChecker"
|
const val DISABLE_CHECKPOINT_CHECKER = "disableCheckpointChecker"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -91,7 +91,7 @@ class StateMachineManagerImpl(
|
|||||||
private val mutex = ThreadBox(InnerState())
|
private val mutex = ThreadBox(InnerState())
|
||||||
// This thread (only enabled in dev mode) deserialises checkpoints in the background to shake out bugs in checkpoint restore.
|
// This thread (only enabled in dev mode) deserialises checkpoints in the background to shake out bugs in checkpoint restore.
|
||||||
private val checkpointCheckerThread = if (serviceHub.configuration.devMode
|
private val checkpointCheckerThread = if (serviceHub.configuration.devMode
|
||||||
&& !serviceHub.configuration.isDevModeOptionsFlagSet(NodeConfiguration.disableCheckpointCheckerFlag))
|
&& !serviceHub.configuration.isDevModeOptionsFlagSet(NodeConfiguration.DISABLE_CHECKPOINT_CHECKER))
|
||||||
newNamedSingleThreadExecutor("CheckpointChecker") else null
|
newNamedSingleThreadExecutor("CheckpointChecker") else null
|
||||||
|
|
||||||
@Volatile private var unrestorableCheckpoints = false
|
@Volatile private var unrestorableCheckpoints = false
|
||||||
|
Loading…
x
Reference in New Issue
Block a user