mirror of
https://github.com/corda/corda.git
synced 2025-01-31 00:24:59 +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
|
||||
|
||||
companion object {
|
||||
val disableCheckpointCheckerFlag = "disableCheckpointChecker"
|
||||
const val DISABLE_CHECKPOINT_CHECKER = "disableCheckpointChecker"
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -91,7 +91,7 @@ class StateMachineManagerImpl(
|
||||
private val mutex = ThreadBox(InnerState())
|
||||
// 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
|
||||
&& !serviceHub.configuration.isDevModeOptionsFlagSet(NodeConfiguration.disableCheckpointCheckerFlag))
|
||||
&& !serviceHub.configuration.isDevModeOptionsFlagSet(NodeConfiguration.DISABLE_CHECKPOINT_CHECKER))
|
||||
newNamedSingleThreadExecutor("CheckpointChecker") else null
|
||||
|
||||
@Volatile private var unrestorableCheckpoints = false
|
||||
|
Loading…
x
Reference in New Issue
Block a user