Skip to content

Commit

Permalink
Replace coreos/etcd imports with etcd-io/etcd imports
Browse files Browse the repository at this point in the history
  • Loading branch information
newrelic-eheinlein committed Oct 3, 2019
1 parent 3c6b655 commit 9d8c936
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 13 deletions.
4 changes: 2 additions & 2 deletions config/source/etcd/etcd.go
Expand Up @@ -6,8 +6,8 @@ import (
"net"
"time"

cetcd "github.com/coreos/etcd/clientv3"
"github.com/coreos/etcd/mvcc/mvccpb"
cetcd "github.com/etcd-io/etcd/clientv3"
"github.com/etcd-io/etcd/mvcc/mvccpb"
"github.com/micro/go-micro/config/source"
)

Expand Down
4 changes: 2 additions & 2 deletions config/source/etcd/util.go
Expand Up @@ -3,8 +3,8 @@ package etcd
import (
"strings"

"github.com/coreos/etcd/clientv3"
"github.com/coreos/etcd/mvcc/mvccpb"
"github.com/etcd-io/etcd/clientv3"
"github.com/etcd-io/etcd/mvcc/mvccpb"
"github.com/micro/go-micro/config/encoder"
)

Expand Down
2 changes: 1 addition & 1 deletion config/source/etcd/watcher.go
Expand Up @@ -6,7 +6,7 @@ import (
"sync"
"time"

cetcd "github.com/coreos/etcd/clientv3"
cetcd "github.com/etcd-io/etcd/clientv3"
"github.com/micro/go-micro/config/source"
)

Expand Down
1 change: 1 addition & 0 deletions go.mod
Expand Up @@ -10,6 +10,7 @@ require (
github.com/coreos/etcd v3.3.15+incompatible
github.com/coreos/go-systemd v0.0.0-20190719114852-fd7a80b32e1f // indirect
github.com/coreos/pkg v0.0.0-20180928190104-399ea9e2e55f // indirect
github.com/etcd-io/etcd v3.3.15+incompatible
github.com/forestgiant/sliceutil v0.0.0-20160425183142-94783f95db6c
github.com/fsnotify/fsnotify v1.4.7
github.com/fsouza/go-dockerclient v1.4.4
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Expand Up @@ -45,6 +45,8 @@ github.com/docker/go-units v0.4.0 h1:3uh0PgVws3nIA0Q+MwDC8yjEPf9zjRfZZWXZYDct3Tw
github.com/docker/go-units v0.4.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk=
github.com/emirpasic/gods v1.12.0 h1:QAUIPSaCu4G+POclxeqb3F+WPpdKqFGlw36+yOzGlrg=
github.com/emirpasic/gods v1.12.0/go.mod h1:YfzfFFoVP/catgzJb4IKIqXjX78Ha8FMSDh3ymbK86o=
github.com/etcd-io/etcd v3.3.15+incompatible h1:zvYyY+8vreyccOqG8XIX6sGTZLKrqkj0NowB37+c9wY=
github.com/etcd-io/etcd v3.3.15+incompatible/go.mod h1:cdZ77EstHBwVtD6iTgzgvogwcjo9m4iOqoijouPJ4bs=
github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4=
github.com/flynn/go-shlex v0.0.0-20150515145356-3f9db97f8568/go.mod h1:xEzjJPgXI435gkrCt3MPfRiAkVrwSbHsst4LCFVfpJc=
github.com/forestgiant/sliceutil v0.0.0-20160425183142-94783f95db6c h1:pBgVXWDXju1m8W4lnEeIqTHPOzhTUO81a7yknM/xQR4=
Expand Down
4 changes: 2 additions & 2 deletions registry/etcd/etcd.go
Expand Up @@ -12,10 +12,10 @@ import (
"sync"
"time"

"github.com/coreos/etcd/clientv3"
"github.com/etcd-io/etcd/clientv3"
"github.com/micro/go-micro/registry"

"github.com/coreos/etcd/etcdserver/api/v3rpc/rpctypes"
"github.com/etcd-io/etcd/etcdserver/api/v3rpc/rpctypes"
hash "github.com/mitchellh/hashstructure"
)

Expand Down
2 changes: 1 addition & 1 deletion registry/etcd/watcher.go
Expand Up @@ -5,7 +5,7 @@ import (
"errors"
"time"

"github.com/coreos/etcd/clientv3"
"github.com/etcd-io/etcd/clientv3"
"github.com/micro/go-micro/registry"
)

Expand Down
2 changes: 1 addition & 1 deletion store/etcd/etcd.go
Expand Up @@ -5,7 +5,7 @@ import (
"context"
"log"

client "github.com/coreos/etcd/clientv3"
client "github.com/etcd-io/etcd/clientv3"
"github.com/micro/go-micro/config/options"
"github.com/micro/go-micro/store"
)
Expand Down
4 changes: 2 additions & 2 deletions sync/leader/etcd/etcd.go
Expand Up @@ -6,8 +6,8 @@ import (
"path"
"strings"

client "github.com/coreos/etcd/clientv3"
cc "github.com/coreos/etcd/clientv3/concurrency"
client "github.com/etcd-io/etcd/clientv3"
cc "github.com/etcd-io/etcd/clientv3/concurrency"
"github.com/micro/go-micro/sync/leader"
)

Expand Down
4 changes: 2 additions & 2 deletions sync/lock/etcd/etcd.go
Expand Up @@ -9,8 +9,8 @@ import (
"strings"
"sync"

client "github.com/coreos/etcd/clientv3"
cc "github.com/coreos/etcd/clientv3/concurrency"
client "github.com/etcd-io/etcd/clientv3"
cc "github.com/etcd-io/etcd/clientv3/concurrency"
"github.com/micro/go-micro/sync/lock"
)

Expand Down

0 comments on commit 9d8c936

Please sign in to comment.