Skip to content

Commit

Permalink
fix: external default in case, imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Fizic committed Jan 10, 2023
1 parent 09f1f26 commit 960c01a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
7 changes: 2 additions & 5 deletions replication/binlogstreamer.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@ import (
)

var (
ErrNeedSyncAgain = errors.New("Last sync error or closed, try sync and get event again")
ErrSyncClosed = errors.New("Sync was closed")
ErrStreamerIsFull = errors.New("streamer is full")
ErrNeedSyncAgain = errors.New("Last sync error or closed, try sync and get event again")
ErrSyncClosed = errors.New("Sync was closed")
)

// BinlogStreamer gets the streaming event.
Expand Down Expand Up @@ -102,8 +101,6 @@ func (s *BinlogStreamer) AddEventToStreamer(ev *BinlogEvent) error {
return nil
case err := <-s.ech:
return err
default:
return ErrStreamerIsFull
}
}

Expand Down
1 change: 1 addition & 0 deletions server/resp.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package server
import (
"context"
"fmt"

. "github.com/go-mysql-org/go-mysql/mysql"
"github.com/go-mysql-org/go-mysql/replication"
)
Expand Down

0 comments on commit 960c01a

Please sign in to comment.