|
|
@@ -83,7 +83,6 @@ func (self *EtcdClient) KeepAliveOnce(leaseId clientv3.LeaseID) error {
|
|
|
func (self *EtcdClient) Get(k string, ops ...clientv3.OpOption) (*clientv3.GetResponse, error) {
|
|
|
//ctx, cancel := context.WithTimeout(context.Background(), self.timeout)
|
|
|
//defer cancel()
|
|
|
-
|
|
|
resp, err := self.c.Get(context.TODO(), k, ops...)
|
|
|
if err != nil {
|
|
|
return nil, err
|