Josh Brickner %!s(int64=7) %!d(string=hai) anos
pai
achega
601a4d7ef8
Modificáronse 2 ficheiros con 2 adicións e 3 borrados
  1. 2 2
      binlog/binlog.go
  2. 0 1
      binlog/connection.go

+ 2 - 2
binlog/binlog.go

@@ -1,7 +1,5 @@
 package binlog
 
-import "fmt"
-
 func (c *Conn) startBinLogStream() error {
 	bldc := &BinLogDumpCommand{
 		Status:   COMMAND_BIN_LOG_DUMP,
@@ -14,6 +12,7 @@ func (c *Conn) startBinLogStream() error {
 	return c.writeBinLogDumpCommand(bldc)
 }
 
+/*
 func (c *Conn) listenForBinlog() error {
 	_, err := c.listen()
 	if err != nil {
@@ -30,3 +29,4 @@ func (c *Conn) listenForBinlog() error {
 
 	return nil
 }
+*/

+ 0 - 1
binlog/connection.go

@@ -8,7 +8,6 @@ import (
 	"database/sql/driver"
 	"encoding/binary"
 	"encoding/json"
-	"errors"
 	"fmt"
 	"io/ioutil"
 	"math"