diff --git a/mysql/driver/dsn.go b/mysql/driver/dsn.go index 9ac8a01..ada3c96 100644 --- a/mysql/driver/dsn.go +++ b/mysql/driver/dsn.go @@ -463,7 +463,6 @@ func parseDSNParams(cfg *Config, params string) (err error) { // Collation case "collation": cfg.Collation = value - break case "columnsWithAlias": var isBool bool diff --git a/mysql/slave/slave_conn.go b/mysql/slave/slave_conn.go index fbbaac0..c06ba65 100644 --- a/mysql/slave/slave_conn.go +++ b/mysql/slave/slave_conn.go @@ -3,7 +3,6 @@ package slave import ( "context" "fmt" - "io" "os" "github.com/localhots/bocadillo/buffer" @@ -138,10 +137,3 @@ func (c *Conn) runCmd(data []byte) error { } return c.conn.ReadResultOK() } - -func notEOF(err error) error { - if err == io.EOF { - return nil - } - return err -}