Skip to content
This repository has been archived by the owner on Nov 24, 2023. It is now read-only.

Commit

Permalink
address comment
Browse files Browse the repository at this point in the history
  • Loading branch information
lance6716 committed Aug 24, 2020
1 parent d3f5b59 commit 104f5df
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion syncer/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
package syncer

import (
"context"
"database/sql"
"strings"
"time"
Expand Down Expand Up @@ -92,7 +93,11 @@ func (conn *UpStreamConn) getServerUUID(flavor string) (string, error) {
}

func (conn *UpStreamConn) getParser() (*parser.Parser, error) {
return utils.GetParser(conn.BaseDB.DB)
c, err := conn.BaseDB.DB.Conn(context.Background())
if err != nil {
return nil, err
}
return utils.GetParserForConn(c)
}

func (conn *UpStreamConn) killConn(connID uint32) error {
Expand Down

0 comments on commit 104f5df

Please sign in to comment.