Skip to content
This repository was archived by the owner on Jun 30, 2025. It is now read-only.

Commit 7cd209d

Browse files
committed
goimports -l -w $(find . -type f -name '*.go' -not -path "./vendor/*")
1 parent 3bb2558 commit 7cd209d

File tree

4 files changed

+8
-9
lines changed

4 files changed

+8
-9
lines changed

qan/analyzer/mysql/config/config.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import (
2828
)
2929

3030
var (
31-
DefaultRemoveOldSlowLogs = true // whether to remove old slow logs after rotation
31+
DefaultRemoveOldSlowLogs = true // whether to remove old slow logs after rotation
3232
)
3333

3434
type MySQLVarType int
@@ -134,7 +134,6 @@ func ValidateConfig(setConfig pc.QAN) (pc.QAN, error) {
134134
runConfig.Interval = setConfig.Interval
135135
}
136136

137-
138137
return runConfig, nil
139138
}
140139

qan/analyzer/mysql/worker/slowlog/worker.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ func (w *Worker) Setup(interval *iter.Interval) error {
155155
}
156156
}
157157

158-
workerRunTime := time.Duration(uint(float64(w.config.Interval) * 0.9)) * time.Second // 90% of interval
158+
workerRunTime := time.Duration(uint(float64(w.config.Interval)*0.9)) * time.Second // 90% of interval
159159
// Create new Job.
160160
w.job = &Job{
161161
Id: fmt.Sprintf("%d", interval.Number),

qan/manager_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -346,9 +346,9 @@ func (s *ManagerTestSuite) TestGetConfig(t *C) {
346346

347347
// Write a realistic qan.conf config to disk.
348348
pcQANSetExpected := pc.QAN{
349-
UUID: mysqlUUID,
350-
CollectFrom: "slowlog",
351-
Interval: 300,
349+
UUID: mysqlUUID,
350+
CollectFrom: "slowlog",
351+
Interval: 300,
352352
}
353353
err := pct.Basedir.WriteConfig("qan-"+mysqlUUID, &pcQANSetExpected)
354354
t.Assert(err, IsNil)

qan/qan_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,9 @@ func TestWithRealMySQL(t *testing.T) {
8282

8383
// Write a realistic qan.conf config to disk.
8484
pcQANSetExpected := pc.QAN{
85-
UUID: protoInstance.UUID,
86-
CollectFrom: "slowlog",
87-
Interval: 300,
85+
UUID: protoInstance.UUID,
86+
CollectFrom: "slowlog",
87+
Interval: 300,
8888
}
8989
err = pct.Basedir.WriteConfig("qan-"+protoInstance.UUID, &pcQANSetExpected)
9090
require.NoError(t, err)

0 commit comments

Comments
 (0)