Skip to content

Commit 5ba1c4c

Browse files
authored
fix some linter warning (#326)
1 parent 36edfcd commit 5ba1c4c

4 files changed

Lines changed: 10 additions & 10 deletions

File tree

pkg/inputs/mysqlbatch/input.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ type PluginConfig struct {
3838
Source *config.DBConfig `mapstructure:"source" toml:"source" json:"source"` // keep same with mysql binlog config to make most cases simple
3939
SourceSlave *config.DBConfig `mapstructure:"source-slave" toml:"source-slave" json:"source-slave"`
4040

41-
SourceProbeCfg *helper.SourceProbeCfg `mapstructure:"source-probe-config"json:"source-probe-config"`
41+
SourceProbeCfg *helper.SourceProbeCfg `mapstructure:"source-probe-config" json:"source-probe-config"`
4242

4343
PositionRepo *config.GenericPluginConfig `mapstructure:"position-repo" toml:"position-repo" json:"position-repo"`
4444

pkg/inputs/mysqlstream/binlog_tailer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ func (tailer *BinlogTailer) Start() error {
463463
continue
464464
}
465465

466-
log.Infof("QueryEvent: database: %s, sql: %s, position: %s", dbName, ddlSQL, currentPosition)
466+
log.Infof("QueryEvent: database: %s, sql: %s, position: %v", dbName, ddlSQL, currentPosition)
467467

468468
if tailer.binlogEventSchemaFilter != nil {
469469
if !tailer.binlogEventSchemaFilter(dbName) {

pkg/inputs/mysqlstream/input.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ type MySQLBinlogInputPluginConfig struct {
4040
IgnoreBiDirectionalData bool `mapstructure:"ignore-bidirectional-data" toml:"ignore-bidirectional-data" json:"ignore-bidirectional-data"`
4141
StartPosition *config.MySQLBinlogPosition `mapstructure:"start-position" toml:"start-position" json:"start-position"`
4242

43-
SourceProbeCfg *helper.SourceProbeCfg `mapstructure:"source-probe-config"json:"source-probe-config"`
43+
SourceProbeCfg *helper.SourceProbeCfg `mapstructure:"source-probe-config" json:"source-probe-config"`
4444

4545
PositionRepo *config.GenericPluginConfig `mapstructure:"position-repo" toml:"position-repo" json:"position-repo"`
4646

@@ -53,9 +53,9 @@ type MySQLBinlogInputPluginConfig struct {
5353
//
5454
// internal configurations that is not exposed to users
5555
//
56-
DisableBinlogChecker bool `mapstructure:"-"json:"-"`
57-
DebugBinlog bool `mapstructure:"-"json:"-"`
58-
BinlogSyncerTimeout string `mapstructure:"-"json:"-"`
56+
DisableBinlogChecker bool `mapstructure:"-" json:"-"`
57+
DebugBinlog bool `mapstructure:"-" json:"-"`
58+
BinlogSyncerTimeout string `mapstructure:"-" json:"-"`
5959
}
6060

6161
type mysqlStreamInputPlugin struct {

pkg/schedulers/batch_table_scheduler/batch_table_scheduler.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,10 @@ var (
7474
const BatchTableSchedulerName = "batch-table-scheduler"
7575

7676
type BatchSchedulerConfig struct {
77-
NrWorker int `mapstructure:"nr-worker"json:"nr-worker"`
78-
MaxBatchPerWorker int `mapstructure:"batch-size"json:"batch-size"`
79-
QueueSize int `mapstructure:"queue-size"json:"queue-size"`
80-
SlidingWindowSize int `mapstructure:"sliding-window-size"json:"sliding-window-size"`
77+
NrWorker int `mapstructure:"nr-worker" json:"nr-worker"`
78+
MaxBatchPerWorker int `mapstructure:"batch-size" json:"batch-size"`
79+
QueueSize int `mapstructure:"queue-size" json:"queue-size"`
80+
SlidingWindowSize int `mapstructure:"sliding-window-size" json:"sliding-window-size"`
8181
NrRetries int `mapstructure:"nr-retries" json:"nr-retries"`
8282
RetrySleepString string `mapstructure:"retry-sleep" json:"retry-sleep"`
8383
HealthyThreshold int `mapstructure:"healthy-threshold" json:"healthy-threshold"`

0 commit comments

Comments
 (0)