From 8e43c0d7d93f70cd9e428454c5fb1aa33e7789f0 Mon Sep 17 00:00:00 2001 From: Matthieu Gusmini <111724849+matthieugusmini@users.noreply.github.com> Date: Thu, 16 Feb 2023 11:27:04 +0900 Subject: [PATCH] Update client.go After some research it seems to be the right way to do this so I removed the HOTFIX comment. --- client.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/client.go b/client.go index 00e99a5..af60564 100644 --- a/client.go +++ b/client.go @@ -247,9 +247,6 @@ func (c *Client) requestData(database, table, version, gtid string) (<-chan Even func (c *Client) handleEvents(data chan<- Event) error { var readSchema bool scanner := bufio.NewScanner(c.conn) - // HOTFIX: Replace by a `bufio.Reader` instead since it seems to be the - // preferred method. - // See https://pkg.go.dev/bufio#Scanner buf := make([]byte, 0, MaxScanTokenSize) scanner.Buffer(buf, MaxScanTokenSize) for scanner.Scan() {