浏览代码

etcdctl: Set watch consistency to STRONG

micahhausler 11 年之前
父节点
当前提交
2be3f870cc
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      etcdctl/command/exec_watch_command.go

+ 1 - 1
etcdctl/command/exec_watch_command.go

@@ -65,7 +65,7 @@ func execWatchCommandFunc(c *cli.Context, client *etcd.Client) (*etcd.Response,
 	}()
 	}()
 
 
 	receiver := make(chan *etcd.Response)
 	receiver := make(chan *etcd.Response)
-	client.SetConsistency(etcd.WEAK_CONSISTENCY)
+	client.SetConsistency(etcd.STRONG_CONSISTENCY)
 	go client.Watch(key, uint64(index), recursive, receiver, stop)
 	go client.Watch(key, uint64(index), recursive, receiver, stop)
 
 
 	for {
 	for {