1. use github.com/coreos instead of go.etcd.io in etcd related import path; 2. add dialtimeout to etcd client

This commit is contained in:
outshow
2019-06-11 16:18:37 +08:00
parent 46de3ae9a9
commit 90a9df9b8c
5 changed files with 27 additions and 8 deletions

View File

@@ -3,9 +3,9 @@ package etcd
import (
"strings"
"github.com/coreos/etcd/clientv3"
"github.com/coreos/etcd/mvcc/mvccpb"
"github.com/micro/go-micro/config/encoder"
"go.etcd.io/etcd/clientv3"
"go.etcd.io/etcd/mvcc/mvccpb"
)
func makeEvMap(e encoder.Encoder, data map[string]interface{}, kv []*clientv3.Event, stripPrefix string) map[string]interface{} {