Skip to content

Commit

Permalink
fix linting & bazel
Browse files Browse the repository at this point in the history
Signed-off-by: mornyx <mornyx.z@gmail.com>
  • Loading branch information
mornyx committed Jan 31, 2023
1 parent fa60ecc commit dc67841
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
1 change: 0 additions & 1 deletion bindinfo/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ go_library(
"//util/memory",
"//util/parser",
"//util/sqlexec",
"//util/stmtsummary",
"//util/table-filter",
"//util/timeutil",
"@org_golang_x_exp//maps",
Expand Down
12 changes: 6 additions & 6 deletions sessionctx/variable/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -3322,7 +3322,7 @@ func (s *stmtSummary) SetEnabled(v bool) {
if s.EnablePersistent && s.StmtSummaryV2 != nil {
s.StmtSummaryV2.SetEnabled(v)
} else if !s.EnablePersistent {
stmtsummary.StmtSummaryByDigestMap.SetEnabled(v)
_ = stmtsummary.StmtSummaryByDigestMap.SetEnabled(v)
}
}

Expand All @@ -3332,7 +3332,7 @@ func (s *stmtSummary) SetEnableInternalQuery(v bool) {
if s.EnablePersistent && s.StmtSummaryV2 != nil {
s.StmtSummaryV2.SetEnableInternalQuery(v)
} else if !s.EnablePersistent {
stmtsummary.StmtSummaryByDigestMap.SetEnabledInternalQuery(v)
_ = stmtsummary.StmtSummaryByDigestMap.SetEnabledInternalQuery(v)
}
}

Expand All @@ -3342,13 +3342,13 @@ func (s *stmtSummary) SetRefreshInterval(v int64) {
if s.EnablePersistent && s.StmtSummaryV2 != nil {
s.StmtSummaryV2.SetRefreshInterval(uint32(v))
} else if !s.EnablePersistent {
stmtsummary.StmtSummaryByDigestMap.SetRefreshInterval(v)
_ = stmtsummary.StmtSummaryByDigestMap.SetRefreshInterval(v)
}
}

func (s *stmtSummary) SetHistorySize(v int) {
if !s.EnablePersistent {
stmtsummary.StmtSummaryByDigestMap.SetHistorySize(v)
_ = stmtsummary.StmtSummaryByDigestMap.SetHistorySize(v)
}
}

Expand All @@ -3358,7 +3358,7 @@ func (s *stmtSummary) SetMaxStmtCount(v int) {
if s.EnablePersistent && s.StmtSummaryV2 != nil {
s.StmtSummaryV2.SetMaxStmtCount(uint32(v))
} else if !s.EnablePersistent {
stmtsummary.StmtSummaryByDigestMap.SetMaxStmtCount(uint(v))
_ = stmtsummary.StmtSummaryByDigestMap.SetMaxStmtCount(uint(v))
}
}

Expand All @@ -3368,7 +3368,7 @@ func (s *stmtSummary) SetMaxSQLLength(v int) {
if s.EnablePersistent && s.StmtSummaryV2 != nil {
s.StmtSummaryV2.SetMaxSQLLength(uint32(v))
} else if !s.EnablePersistent {
stmtsummary.StmtSummaryByDigestMap.SetMaxSQLLength(v)
_ = stmtsummary.StmtSummaryByDigestMap.SetMaxSQLLength(v)
}
}

Expand Down

0 comments on commit dc67841

Please sign in to comment.