浏览代码

Maybe flagAutoFreq doesn't actually have much effect

Ben Hood 11 年之前
父节点
当前提交
2355d4123f
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      cassandra_test.go

+ 2 - 2
cassandra_test.go

@@ -30,7 +30,7 @@ var (
 	clusterSize  = flag.Int("clusterSize", 1, "the expected size of the cluster")
 	clusterSize  = flag.Int("clusterSize", 1, "the expected size of the cluster")
 	flagRetry    = flag.Int("retries", 5, "number of times to retry queries")
 	flagRetry    = flag.Int("retries", 5, "number of times to retry queries")
 	flagAutoWait = flag.Duration("autowait", 1000*time.Millisecond, "time to wait for autodiscovery to fill the hosts poll")
 	flagAutoWait = flag.Duration("autowait", 1000*time.Millisecond, "time to wait for autodiscovery to fill the hosts poll")
-	flagAutoFreq = flag.Duration("autofreq", 1000*time.Millisecond, "frequency for autodiscovery to discover new hosts")
+	//flagAutoFreq = flag.Duration("autofreq", 1000*time.Millisecond, "frequency for autodiscovery to discover new hosts")
 	clusterHosts []string
 	clusterHosts []string
 )
 )
 
 
@@ -112,7 +112,7 @@ func TestRingDiscovery(t *testing.T) {
 	cluster.Consistency = Quorum
 	cluster.Consistency = Quorum
 	cluster.RetryPolicy.NumRetries = *flagRetry
 	cluster.RetryPolicy.NumRetries = *flagRetry
 	cluster.DiscoverHosts = true
 	cluster.DiscoverHosts = true
-	cluster.Discovery = DiscoveryConfig{Sleep: *flagAutoFreq}
+	//cluster.Discovery = DiscoveryConfig{Sleep: *flagAutoFreq}
 
 
 	session, err := cluster.CreateSession()
 	session, err := cluster.CreateSession()
 	if err != nil {
 	if err != nil {