Skip to content

Commit

Permalink
Setting validations
Browse files Browse the repository at this point in the history
  • Loading branch information
Кирилл committed Aug 14, 2024
1 parent d0ee7b4 commit 7079c9c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,8 @@ open class GenericUpstream(
log.info("Configured for ${getChain().chainName}")
connector.start()

if (false) {
val validSettingsResult = validator!!.validateUpstreamSettingsOnStartup()
if (validator != null) {
val validSettingsResult = validator.validateUpstreamSettingsOnStartup()
when (validSettingsResult) {
UPSTREAM_FATAL_SETTINGS_ERROR -> {
log.warn("Upstream ${getId()} couldn't start, invalid upstream settings")
Expand All @@ -173,7 +173,7 @@ open class GenericUpstream(
upstreamStart()
}
}
// validateUpstreamSettings()
validateUpstreamSettings()
} else {
isUpstreamValid.set(true)
upstreamStart()
Expand Down

0 comments on commit 7079c9c

Please sign in to comment.