Ver código fonte

fix etcd.Get

joe 4 anos atrás
pai
commit
0f3bb6e4f9
1 arquivos alterados com 0 adições e 1 exclusões
  1. 0 1
      etcd/etcd.go

+ 0 - 1
etcd/etcd.go

@@ -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