Skip to content

Commit

Permalink
enable
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Leung <[email protected]>
  • Loading branch information
rleungx committed Oct 31, 2024
1 parent 0fe66a4 commit 691c61b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion server/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,8 @@ const (
minCheckRegionSplitInterval = 1 * time.Millisecond
maxCheckRegionSplitInterval = 100 * time.Millisecond

defaultEnableSchedulingFallback = true
defaultEnableSchedulingFallback = true
defaultEnableTSODynamicSwitching = true
)

// Special keys for Labels
Expand Down Expand Up @@ -862,6 +863,9 @@ func (c *MicroServiceConfig) adjust(meta *configutil.ConfigMetaData) {
if !meta.IsDefined("enable-scheduling-fallback") {
c.EnableSchedulingFallback = defaultEnableSchedulingFallback
}
if !meta.IsDefined("enable-tso-dynamic-switching") {
c.EnableTSODynamicSwitching = defaultEnableTSODynamicSwitching
}
}

// Clone returns a copy of micro service config.
Expand Down

0 comments on commit 691c61b

Please sign in to comment.