Skip to content

Commit aab5e29

Browse files
committed
for updating etcd
1 parent d429399 commit aab5e29

File tree

11 files changed

+13
-13
lines changed

11 files changed

+13
-13
lines changed

cmd/dm/cmd/sync/dm.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ import (
66
"flag"
77
"time"
88

9-
"github.com/coreos/etcd/clientv3"
109
_ "github.com/go-sql-driver/mysql"
1110
"github.com/tal-tech/cds/cmd/dm/cmd/sync/config"
1211
"github.com/tal-tech/cds/cmd/dm/module"
1312
"github.com/tal-tech/cds/pkg/strx"
1413
"github.com/tal-tech/go-zero/core/conf"
1514
"github.com/tal-tech/go-zero/core/logx"
16-
"go.etcd.io/etcd/clientv3/concurrency"
15+
clientv3 "go.etcd.io/etcd/client/v3"
16+
"go.etcd.io/etcd/client/v3/concurrency"
1717
)
1818

1919
var (

cmd/dm/module/jobstatus.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import (
55
"encoding/json"
66
"time"
77

8-
"github.com/coreos/etcd/clientv3"
98
"github.com/tal-tech/cds/cmd/dm/cmd/sync/config"
9+
clientv3 "go.etcd.io/etcd/client/v3"
1010
)
1111

1212
const (

cmd/dm/module/manager.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010

1111
"github.com/tal-tech/cds/cmd/dm/cmd/sync/config"
1212
"github.com/tal-tech/go-zero/core/logx"
13-
"go.etcd.io/etcd/clientv3/concurrency"
13+
"go.etcd.io/etcd/client/v3/concurrency"
1414
)
1515

1616
type Manager struct {

cmd/dm/module/service.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"regexp"
88

99
"github.com/tal-tech/go-zero/core/logx"
10-
"go.etcd.io/etcd/clientv3/concurrency"
10+
"go.etcd.io/etcd/client/v3/concurrency"
1111
"gopkg.in/mgo.v2/bson"
1212

1313
"github.com/tal-tech/cds/cmd/dm/choperator"

cmd/galaxy/internal/clients/dmclient.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"github.com/tal-tech/cds/cmd/dm/cmd/sync/config"
1010
"github.com/tal-tech/cds/pkg/strx"
1111
"github.com/tal-tech/go-zero/core/logx"
12-
"go.etcd.io/etcd/clientv3"
12+
clientv3 "go.etcd.io/etcd/client/v3"
1313
)
1414

1515
type DmClient struct {

cmd/galaxy/internal/clients/rtuclient.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"github.com/tal-tech/cds/cmd/rtu/cmd/sync/config"
1010
"github.com/tal-tech/cds/pkg/strx"
1111
"github.com/tal-tech/go-zero/core/logx"
12-
"go.etcd.io/etcd/clientv3"
12+
clientv3 "go.etcd.io/etcd/client/v3"
1313
)
1414

1515
type RtuClient struct {

cmd/galaxy/internal/svc/servicecontext.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"github.com/tal-tech/cds/cmd/galaxy/internal/model"
88
"github.com/tal-tech/cds/pkg/canalx"
99
"github.com/tal-tech/cds/pkg/debeziumx"
10-
"go.etcd.io/etcd/clientv3"
10+
clientv3 "go.etcd.io/etcd/client/v3"
1111
)
1212

1313
type ServiceContext struct {

cmd/rtu/handle/common.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import (
66
"sync"
77
"time"
88

9-
"github.com/coreos/etcd/clientv3"
109
"github.com/tal-tech/go-zero/core/logx"
10+
clientv3 "go.etcd.io/etcd/client/v3"
1111
"go.uber.org/atomic"
1212

1313
"github.com/tal-tech/cds/cmd/rtu/cmd/sync/config"

cmd/rtu/handle/etcdjob.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ import (
88
"sync"
99
"time"
1010

11-
"github.com/coreos/etcd/clientv3"
12-
"github.com/coreos/etcd/clientv3/concurrency"
1311
"github.com/tal-tech/cds/cmd/rtu/cmd/sync/config"
1412
"github.com/tal-tech/cds/pkg/strx"
1513
"github.com/tal-tech/go-zero/core/logx"
14+
clientv3 "go.etcd.io/etcd/client/v3"
15+
"go.etcd.io/etcd/client/v3/concurrency"
1616
)
1717

1818
var (

cmd/rtu/handle/rtujob.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import (
66
"sync/atomic"
77
"time"
88

9-
"github.com/coreos/etcd/clientv3"
109
"github.com/tal-tech/go-zero/core/logx"
10+
clientv3 "go.etcd.io/etcd/client/v3"
1111

1212
"github.com/tal-tech/cds/cmd/rtu/cmd/sync/config"
1313
"github.com/tal-tech/cds/cmd/rtu/model"

cmd/rtu/handle/run.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import (
77

88
"github.com/tal-tech/cds/cmd/rtu/cmd/sync/config"
99

10-
"github.com/coreos/etcd/clientv3"
1110
"github.com/tal-tech/go-zero/core/logx"
11+
clientv3 "go.etcd.io/etcd/client/v3"
1212
)
1313

1414
var (

0 commit comments

Comments
 (0)