Skip to content

Commit

Permalink
fix: golang cli lint
Browse files Browse the repository at this point in the history
  • Loading branch information
feiin committed Jan 1, 2025
1 parent 4eabc2f commit 43759fa
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
5 changes: 2 additions & 3 deletions db/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,8 @@ func GetMysqlTableColumns(schema string, table string) (columns []string, metaFr
}
}

for _, v := range metaDataMap[schema][table] {
columns = append(columns, v)
}
columns = append(columns, metaDataMap[schema][table]...)

return columns, metaFromMaster, nil
}

Expand Down
7 changes: 6 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,12 @@ func main() {

if binlogCenterPos != nil {
*srcDbGtid = binlogCenterPos.BinlogGtid
db.InitBinLogCenter(binlogCenterPos)
err := db.InitBinLogCenter(binlogCenterPos)
if err != nil {
logger.ErrorWith(context.Background(), err).Msg("initBinLogCenter error")
panic(err)
}

}

cfg := replication.BinlogSyncerConfig{
Expand Down

0 comments on commit 43759fa

Please sign in to comment.