Skip to content

Commit

Permalink
config: fix trace-region-flow displayed incorrectly (#7993) (#8146)
Browse files Browse the repository at this point in the history
close #7917

Signed-off-by: Ryan Leung <[email protected]>

Co-authored-by: Ryan Leung <[email protected]>
  • Loading branch information
ti-chi-bot and rleungx committed May 13, 2024
1 parent 78f4254 commit 7eb188c
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions server/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,6 @@ const (
defaultLeaderPriorityCheckInterval = time.Minute

defaultUseRegionStorage = true
defaultTraceRegionFlow = true
defaultFlowRoundByDigit = 3 // KB
maxTraceFlowRoundByDigit = 5 // 0.1 MB
defaultMaxResetTSGap = 24 * time.Hour
Expand Down Expand Up @@ -542,9 +541,6 @@ func (c *PDServerConfig) adjust(meta *configutil.ConfigMetaData) error {
if !meta.IsDefined("dashboard-address") {
c.DashboardAddress = defaultDashboardAddress
}
if !meta.IsDefined("trace-region-flow") {
c.TraceRegionFlow = defaultTraceRegionFlow
}
if !meta.IsDefined("flow-round-by-digit") {
configutil.AdjustInt(&c.FlowRoundByDigit, defaultFlowRoundByDigit)
}
Expand Down

0 comments on commit 7eb188c

Please sign in to comment.