From bf7a840acd2ad7856059a0fb5e40a981085ddd73 Mon Sep 17 00:00:00 2001 From: Fizic Date: Tue, 19 Mar 2024 13:54:50 +0300 Subject: [PATCH] fix: issues --- internal/app/util.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/app/util.go b/internal/app/util.go index be6f5f57..7c3dca9a 100644 --- a/internal/app/util.go +++ b/internal/app/util.go @@ -2,10 +2,10 @@ package app import ( "fmt" - mysql2 "github.com/go-mysql-org/go-mysql/mysql" - "github.com/google/uuid" "time" + gomysql "github.com/go-mysql-org/go-mysql/mysql" + "github.com/google/uuid" "github.com/yandex/mysync/internal/log" "github.com/yandex/mysync/internal/mysql" "github.com/yandex/mysync/internal/mysql/gtids" @@ -235,7 +235,7 @@ func isGTIDLessOrEqual(slaveGtidSet, masterGtidSet gtids.GTIDSet) bool { return masterGtidSet.Contain(slaveGtidSet) || masterGtidSet.Equal(slaveGtidSet) } -func isSplitBrained(slaveGtidSet, masterGtidSet *mysql2.MysqlGTIDSet, masterUUID uuid.UUID) bool { +func isSplitBrained(slaveGtidSet, masterGtidSet *gomysql.MysqlGTIDSet, masterUUID uuid.UUID) bool { for _, MasterSet := range masterGtidSet.Sets { slaveSet, ok := slaveGtidSet.Sets[MasterSet.SID.String()] if !ok {