Skip to content

Commit df0dd39

Browse files
authored
upgrade go.etcd.io/etcd/v3 v3.3.0 to go.etcd.io/etcd/client/v3 v3.5.0 (#4)
Upgrade go.etcd.io/etcd/v3 v3.3.0 to go.etcd.io/etcd/client/v3 v3.5.0
1 parent ff64c51 commit df0dd39

File tree

6 files changed

+139
-90
lines changed

6 files changed

+139
-90
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
.DS_Store
22
.vscode/
3+
.idea

store/etcdv3/common.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111

1212
"github.com/jasonjoo2010/goschedule/store"
1313
"github.com/labstack/gommon/log"
14-
etcd "go.etcd.io/etcd/v3/clientv3"
14+
etcd "go.etcd.io/etcd/client/v3"
1515
)
1616

1717
func toStr(obj interface{}) (string, error) {

store/etcdv3/etcd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import (
1717
"github.com/jasonjoo2010/goschedule/definition"
1818
"github.com/jasonjoo2010/goschedule/log"
1919
"github.com/jasonjoo2010/goschedule/store"
20-
etcd "go.etcd.io/etcd/v3/clientv3"
20+
etcd "go.etcd.io/etcd/client/v3"
2121
)
2222

2323
type Etcdv3Store struct {

store/etcdv3/go.mod

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,8 @@ module github.com/jasonjoo2010/goschedule/store/etcdv3
33
go 1.14
44

55
require (
6-
go.etcd.io/etcd/v3 v3.3.0-rc.0.0.20200925060232-add86bbd1a7a
7-
github.com/coreos/go-semver v0.3.0 // indirect
8-
github.com/coreos/go-systemd v0.0.0-20191104093116-d3cd4ed1dbcf // indirect
9-
github.com/coreos/pkg v0.0.0-20180928190104-399ea9e2e55f // indirect
10-
github.com/gogo/protobuf v1.3.2 // indirect
116
github.com/jasonjoo2010/goschedule v1.1.0
127
github.com/labstack/gommon v0.3.0
13-
github.com/sirupsen/logrus v1.6.0
148
github.com/stretchr/testify v1.7.0
15-
go.uber.org/zap v1.16.0 // indirect
16-
google.golang.org/grpc v1.29.1 // indirect
9+
go.etcd.io/etcd/client/v3 v3.5.0
1710
)

0 commit comments

Comments
 (0)