kvtools / valkeyrie

Distributed Key/Value Store Abstraction Library written in Go.
https://pkg.go.dev/github.com/kvtools/valkeyrie
Apache License 2.0
278 stars 43 forks source link

Fix the import statements in etcd.go. #39

Closed Gaboose closed 4 years ago

Gaboose commented 4 years ago

Can't use this workaround (https://github.com/etcd-io/etcd/issues/11563#issuecomment-620474246) if valkeyrie mixes go.etcd.io/etcd with github.com/coreos/etcd for some reason.

github.com/abronan/valkeyrie/store/etcd/v3
../../../go/pkg/mod/github.com/abronan/valkeyrie@v0.0.0-20191010124425-1ae9442de16e/store/etcd/v3/etcd.go:422:42: cannot use s.client (type *"github.com/coreos/etcd/clientv3".Client) as type *"go.etcd.io/etcd/clientv3".Client in argument to concurrency.NewSession
../../../go/pkg/mod/github.com/abronan/valkeyrie@v0.0.0-20191010124425-1ae9442de16e/store/etcd/v3/etcd.go:477:87: cannot use l.session.Lease() (type "go.etcd.io/etcd/clientv3".LeaseID) as type "github.com/coreos/etcd/clientv3".LeaseID in argument to "github.com/coreos/etcd/clientv3".WithLease